Cannot read property 'chooseDesktopMedia' of undefined

China☆狼群 提交于 2019-12-11 11:28:48

问题


I am working on desktopCapture API of google chrome webrtc. When I run the application I am getting error "Cannot read property 'chooseDesktopMedia' of undefined". Means browser is not able to find the chrome.desktopCapture inside chrome browser.

My chrome browser version is 38.


回答1:


Yep, access to the desktopCapture API is disabled by default. You either need to write an extension or modify the browsers internal flags.

I wrote such an example extension which might be helpful.



来源:https://stackoverflow.com/questions/28018571/cannot-read-property-choosedesktopmedia-of-undefined

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!