-
Notifications
You must be signed in to change notification settings - Fork 276
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
1 to many Broadcast, prevent viewer from send audio #71
Comments
Nice! Try adding var broadcaster = PHONE({
number : "BROADCASTER", // If you want more than one broadcaster, use unique ids
media : { audio : true, video : true }, // <----------------
publish_key : 'pub-c-561a7378-fa06-4c50-a331-5c0056d0163c',
subscribe_key : 'sub-c-17b7db8a-3915-11e4-9868-02ee2ddab7fe',
ssl : true
}); |
Thank you for your response! BROADCASTER var broadcaster = PHONE({
number : "BROADCASTER", // If you want more than one broadcaster, use unique ids
publish_key : 'pub-c-*',
subscribe_key : 'sub-c-*',
media : { audio : true, video : true },
ssl : true
}); VIEWER var viewer = PHONE({
number : "VIEWER-"+new Date,
publish_key : 'pub-c-*',
subscribe_key : 'sub-c-*',
media : { audio : true, video : true },
autocam : false,
ssl : true
}); |
I've tried many variations without success. |
Okay I have something that may be a starting point for you. Try these files: Broadcaster SOURCE Viewers SOURCE |
Demo links will help. The Broadcaster: https://stephenlb.github.io/webrtc-sdk/tutorials/broadcaster.html |
Thank you for your help, which is just a workaround, |
Hi, ive tried following the docs that you have made.
https://github.com/stephenlb/webrtc-sdk#viewer
everything works fine, i just want to make the viewer cant send any audio and video
just want them to listen to the broadcast.,
tried using the autocam: false on the viewer side.
but the viewer cant hear anything after i did it
The text was updated successfully, but these errors were encountered: