无法读取未定义的属性"chooseDesktopMedia" [英] Cannot read property 'chooseDesktopMedia' of undefined

查看:214
本文介绍了无法读取未定义的属性"chooseDesktopMedia"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Google chrome webrtc的desktopCapture API.运行应用程序时,出现错误无法读取未定义的属性'chooseDesktopMedia'" .表示浏览器无法在chrome浏览器中找到chrome.desktopCapture.

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.

我的chrome浏览器版本是38.

My chrome browser version is 38.

推荐答案

是的,请访问 desktopCapture API 默认情况下处于禁用状态.您需要编写扩展名或修改浏览器的内部标志.

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

我写了这样一个示例扩展程序,可能会有所帮助.

这篇关于无法读取未定义的属性"chooseDesktopMedia"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆