首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >整合trtc报错navigator.mediaDevices is undefined ?

整合trtc报错navigator.mediaDevices is undefined ?

提问于 2020-08-12 03:33:16
回答 2关注 0查看 1.2K

回答 2

Mosen

回答已采纳

发布于 2020-08-13 08:56:38

具体的操作是什么?可以先参考一下这个文档https://developer.mozilla.org/zh-CN/docs/Web/API/Navigator/mediaDevices

张三

提问者

发布于 2020-08-13 10:30:58

出现的问题就是,开启视频通话不出现界面,无法加载预览界面。无法抓取视频流。

已经找到原因:是因为google的webrtc需要在三种环境下运行才能调用上述插件获取视频流。 1、localhost,即127.0.0.1 用于本地测试。

2、https域,上线使用。用http就会报上面的错误。(我之前就是这个问题)

3、本地文件,可以尝试直接下载trtc的web端demo,发现直接在本地用浏览器打开index也是直接可以使用,不会报错。

和开发者交流更多问题细节吧,去 写回答
相关文章
Vue整合Echarts报错:“TypeError: Cannot read properties of undefined (reading ‘init‘)“
        Vue整合完Echart使用的时候报错:"TypeError: Cannot read properties of undefined (reading 'init')" 大概意思是无法读取未定义的属性(init)
陶然同学
2023/02/24
3.9K0
Vue整合Echarts报错:“TypeError: Cannot read properties of undefined (reading ‘init‘)“
手动集成TRTC后运行报错,+[AVAudioSession txc_enableHook:]
手动集成TRTC SDK后运行工程崩溃提示“erminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[AVAudioSession txc_enableHook:]: unrecognized selector sent to class 0x1d2b97170'”
小明同学接音视频
2022/02/11
8020
【踩坑】PyG报错Undefined symbol: xxxxxx
小锋学长生活大爆炸
2023/05/26
3850
解决dataTable 报错:cannot read property “style“ of undefined
今天看到群友的情况是后台传送的 json 格式不对,正确的格式一定要有中括号 :[ ] 。
微风-- 轻许--
2022/04/13
7480
解决dataTable 报错:cannot read property “style“ of undefined
React报错之ref返回undefined或null
原文链接:https://bobbyhadz.com/blog/react-ref-returns-undefined-or-null[1]
chuckQu
2022/08/19
1.6K0
springboot整合mybatis报错
运行测试时报错如下 CLIENT_PLUGIN_AUTH is required
暴躁的程序猿
2022/03/23
3180
umi 项目报错 TypeError: Cannot read property ‘forEach‘ of undefined
TypeError: Cannot read property 'forEach' of undefined
星宇大前端
2022/06/05
9940
minigui:解决gvfb编译报错undefined reference to symbol 'XkbGetIndicatorState'
版权声明:本文为博主原创文章,转载请注明源地址。 https://blog.csdn.net/10km/article/details/83380130
10km
2019/05/25
8160
EasyNVR通道关闭水印报错Cannot read properties of undefined
自前段时间EasyDSS新增添加水印功能后,EasyNVR也增加了该功能。在测试该功能期间,我们发现在EasyNVR内通道关闭水印提交报错,报错内容如下: Error in event handler for “click”: “TypeError: Cannot read properties of undefined (reading ‘width’)”
TSINGSEE青犀视频
2021/10/13
4230
vue报错: ERROR TypeError: Cannot read property 'version' of undefined
在打开项目的时候 输入命令npm run serve 运行项目发现了这样的报错 导致项目无法运行
王小婷
2022/08/24
1.8K0
vue报错: ERROR  TypeError: Cannot read property 'version' of undefined
EasyNVR通道关闭水印报错Cannot read properties of undefined
自前段时间EasyDSS新增添加水印功能后,EasyNVR也增加了该功能。在测试该功能期间,我们发现在EasyNVR内通道关闭水印提交报错,报错内容如下:
EasyNVR
2021/10/18
3960
keepalived 编译报错undefined reference to `OPENSSL_init_crypto'
查看check_ssl.c 发现应该是识别到 1.1.0的版本了, 但使用的库的信息是1.0.0的
大大刺猬
2023/07/13
1.3K0
(自制翻译)如何解决在vue中this报错undefined
当你开心地在编程,惊叹于vue的神奇,这时你却遇到这样的情况: 你的vue应用无法正常工作,你收到的报错是:this is undefined
杨肆月
2019/08/20
4.2K0
使用jquery插件报错:$.browser is undefined的解决方法
刚开始以为是插件有错误,就到官方网站去下载一个最新版的Jcrop插件,结果在原项目的网页打开就是正常的,而引入项目就会报错,我发现可能与 jquery的插件版本有关,查看官方的demo目录下的juqery版本是V1.3.2, 而我使用的jquery版本是V1.11.1,查看jquery官方的更新日志,果然是这个的问题。
王念博客
2019/07/24
7360
Apache配置压缩优化时报错——undefined symbol: inflateEnd
Apache配置压缩优化时报错——undefined symbol: inflateEnd
星哥玩云
2022/06/28
7590
Laravel报错Call to undefined function Illuminate\Encryption\openssl_cipher_iv_length()
在phpstudy中运行Laravel一键安装包时报错:Call to undefined function Illuminate\Encryption\openssl_cipher_iv_length(),产生错误的原因是没开启php_openssl扩展,开启即可。
全栈程序员站长
2021/12/23
9170
MyBatis Plus + Activity 整合报错
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'indexConroller': Unsatisfied dependency expressed through field 'miaoService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyExcep
二十三年蝉
2018/10/11
2K2
MyBatis Plus + Activity 整合报错
php安装redis报错undefined symbol: php_json_decode_ex
原因是 包含redis扩展之前要先包含json扩展。。。。 extension=json extension=igbinary extension="redis.so" extension=mongodb
xiny120
2019/11/07
2K0
【golang】使用rpcx不指定tags报错 undefined: serverplugin.ConsulRegisterPlugin
为了避免引入不必要的库, rpcx采用了 Go 条件编译 的特性, 你可以只引入必要的特性。 比如你只使用 etcd 作为注册中心的时候, 你不希望引入 consul、zookeeper相关的库,你需要在 Go BuildTags中指定 etcd。
landv
2019/07/26
6880
npm run dev启动报错:TypeError: Cannot read property 'upgrade' of undefined
描述: 给vue项目增加了本地代理,也就是给vue.config.js增加了devServer之后,启动项目报错:Vue ERROR TypeError: Cannot read property ‘upgrade’ of undefined
王小婷
2021/11/24
8.3K0
npm run dev启动报错:TypeError: Cannot read property 'upgrade' of undefined

相似问题

vue整合trtc报错navigator.mediaDevices is undefined?

21.6K

navigator.mediaDevices is undefined在手机端webView中报错?

0279

springboot整合optaplanner报错?

1271

腾讯互动课堂TRTC报错,来大佬?

0341

trtc 上传本流报错?

1245
相关问答用户
德勤 | 审计擅长5个领域
擅长1个领域
腾讯 | 高级产品经理擅长1个领域
腾讯 | 腾讯云通信团队擅长4个领域
腾讯 | 技术咨询工程师
添加站长 进交流群

领取专属 10元无门槛券

AI混元助手 在线答疑

扫码加入开发者社群
关注 腾讯云开发者公众号

洞察 腾讯核心技术

剖析业界实践案例

扫码关注腾讯云开发者公众号
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档