Cannot read property 'chooseDesktopMedia'

2019-08-10 15:30发布

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条回答
孤傲高冷的网名
2楼-- · 2019-08-10 16:05

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.

查看更多
登录 后发表回答