Giter Site home page Giter Site logo

Prevent split screen about js-docs HOT 10 CLOSED

eyeson-team avatar eyeson-team commented on July 28, 2024
Prevent split screen

from js-docs.

Comments (10)

unused avatar unused commented on July 28, 2024

Hello, can you please describe how your custom layout should look like or provide some mockup?

from js-docs.

johnsoliman avatar johnsoliman commented on July 28, 2024

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 ...

jgacokcpjoafhiad

from js-docs.

unused avatar unused commented on July 28, 2024

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.

johnsoliman avatar johnsoliman commented on July 28, 2024

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.

unused avatar unused commented on July 28, 2024

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.

johnsoliman avatar johnsoliman commented on July 28, 2024

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.

johnsoliman avatar johnsoliman commented on July 28, 2024

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.

unused avatar unused commented on July 28, 2024

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.

johnsoliman avatar johnsoliman commented on July 28, 2024

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.

unused avatar unused commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.