Comments (10)
Hello, can you please describe how your custom layout should look like or provide some mockup?
from js-docs.
According to the design we have a full windowed screen of the other person. In the right upper corner we want the current users screen. I can add the current user using "localStream", but in "remoteStream" the screen is split in two if multiple persons join the room ...
from js-docs.
Thank you for the mockup. We offer some participants layout adaption for the video, you can test it on the regular eyeson webgui or accounts.eyeson.team. With using a single stream every participants has the same video pictures, needless to show the secondary stream.
from js-docs.
And how do I use a single stream with the javascript library? I can't find any option about layout in the documentation...
from js-docs.
As described in the help center the eyson service provides a single stream for you, the JavaScript library offers this at the connection. This is the remoteStream received.
We did not put the layout into the documentation (yet) as it is a very rare use-case and mostly used when streaming webinars. However if you plan to implement a feature similar to the web-gui - set participants to specific predefined positions - let me know and I'll collect the details for you. Note that this won't allow to create the view like you described in the mockup either.
from js-docs.
I can see that you use the following event. I just need a documentation what is needed here. Which layoutTypes are possible and what do I have to provide for parameter users. Is users optional or mandatory?
Moreover, it is update_stream but in the documentation there is also a stream_update event. This can be very confusing...
eyeson.send({
type: "set_layout",
layoutType: "one",
users: {}
});
Thanks in advance.
from js-docs.
I tried setting the layout setting in the eyeson webgui at accounts.eyeson.team - it does not work. Every other layout than auto does not work at all! The event I mentioned is sent, but after that nothing happens.
from js-docs.
You don't have to take care for any stream updates when changing the layout. As in the eyeson web gui you can use auto
, one
, two
, or four
as layoutType and you have to provide the id of a user to be set for the specific position using an empty string for an empty position. The correct structure is as follows...
eyeson.send({
type: 'set_layout',
params: {
layoutType: 'two',
users: ['', '<user-id>'],
},
});
from js-docs.
Is it the same user id I used when generating the room link? I tried it with the user ID specified when making the room, but it doesn't seem to work. I get only a blank screen.
Room created with users:
{id: UserA, name: UserAName},
{id: UserB, name: UserBName}
Event sent when UserAName visits the gui:
eyeson.send({
type: 'set_layout',
params: {
layoutType: 'one',
users: ['UserB'],
},
});
from js-docs.
The user-id is the identification you receive from the API. Note: It doesn't matter which client sets the layout, every participant will see the same video as mentioned before.
from js-docs.
Related Issues (20)
- streaming to youtube HOT 5
- Share Screen using javascript HOT 1
- Extract Data / Reporting HOT 1
- Compile fails when Eyeson JS Library imported in Angular 11 app HOT 3
- Screen sharing doesn't end HOT 4
- Video Layout issue. Grey boxes around the video HOT 4
- quick test devices HOT 1
- stream_update should mention that either local or stream receives the update HOT 1
- Set on DeviceManager does not state that it wants a deviceId HOT 1
- User grid layout HOT 1
- Show participants while screen sharing HOT 1
- What are those ice_failed events? HOT 1
- eyeson Chrome Extension link is down HOT 1
- Exit meeting with `bye` HOT 1
- Implement eyeson JS into asp.net MVC HOT 1
- Example of how to change video/audio/mic. HOT 8
- 2 participants - show their names HOT 2
- Screen sharing - full screen mode HOT 2
- Firefox - getting session_failed event HOT 8
- Mobile - Firefox issue HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-docs.