简体   繁体   中英

how would I get camera and mic presence in device with html5?

I am writing an app that uses camera and microphone with HMTL5, I read out all the documentation to use camera and mic with getUserMedia, webRTC, webAudio,etc.. APIs, but I cant figure out how before going with getusermedia or any other api, how can I know whether camera or microphone is connected or not?

I would like to implement my application flow based on the connection status of camera or microphone.

Is it possible to get devices connection status?

如果您查看示例2 ,则可以看到相机的异常处理不可用。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM