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

Usage requires camera and microphone in web #11

Open
aoberoi opened this issue Dec 3, 2015 · 0 comments
Open

Usage requires camera and microphone in web #11

aoberoi opened this issue Dec 3, 2015 · 0 comments

Comments

@aoberoi
Copy link
Contributor

aoberoi commented Dec 3, 2015

If you do not have a camera AND a microphone, or do not allow either one of them, the JavaScript sample will not work.

A workaround is to modify the code to either:

  1. Detect available devices using OT.getDevices() first, and use the publisher properties to only uses the devices you care about. Then change the getStats() related code to handle only the devices that are being used.
  2. If you never care about a single kind of device (such as audio-only), you can remove the other from the implementation, and change the publisher intialization to pass false as the source for the one that you want to remove.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant