Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stream video after joining with video disabled #19

Closed
ian-luca opened this issue Sep 28, 2020 · 1 comment
Closed

stream video after joining with video disabled #19

ian-luca opened this issue Sep 28, 2020 · 1 comment

Comments

@ian-luca
Copy link

When I join a conference, with eyeson.start(accessKey, { video: false, audio: false }), I`m not able to activate video streaming afterwards.

I`ve tried it with these three options:

  1. Using the StreamHelpers, as is necessary with audio
    StreamHelpsers.enableCamera(eyeson.session.localStream)

  2. Using the change_stream event, as poorly documented in this repository
    eyeson.send({ type: 'change_stream', options: { video: true })

  3. Building a new stream using MediaStreamBuilder
    eyeson.session.setStream(await new MediaStreamBuilder({ video: true, audio: true }))

Am I missing something, or is one of the above the "official" way of enabling video

I havn`t had any problems with StreamHelpers.enableCamera(...)/StreamHelpers.disableCamera(...) when the stream was joined with { video: true, ... } options

@opusonline
Copy link
Member

Hello @ian-luca,

thank you so much for your feedback!

I had a closer look and noticed a mistake on the documentation for change_stream event. It is now updated.

The correct way using it is:

eyeson.send({ type: 'change_stream', video: true, audio: true })

You can also see a working demo in the React-web-gui-example.

Best regards,
Stefan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants