- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
在v3.3 js demo中发布本地视频,调用下面这段代码:
conference.publish(localStream, {}, function(st) {
L.Logger.info('stream published:', st.id());
}, function(err) {
L.Logger.error('publish failed:', err);
});
我本地是广电的宽带。v3.3发布视频,大部分时间都发布失败,偶尔能成功。发布成功时会打印“stream published”,而发布失败时,任何信息都没有打印(也就是说“stream published” 和 “publish failed”都没有打印)。在其他网络环境下(电信、4G)都正常。
此时如果调用下面代码取消发布:
conference.unpublish(localStream, {}, function (st) {
Log.info('stream unpublished:', st.id());
}, function (err) {
Log.error('unpublish failed:', err);
});
那么会报错:TypeError: st.id is not a function,通过打断点可以看到,st = “invalid stream”。如果前面发布成功,此处不会报错。
所以麻烦看看,在什么情况下,publish的时候会“跑飞”,什么信息都没打印,console也没其他报错。
多谢!
- Tags:
- HTML5
- JavaScript*
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
正常情况下发布失败会给出error callback,能否将你的logs目录打包给我们,论坛或支持邮件webrtc_support@intel.com都可以。
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
所有对比测试,都是在本地同网络同电脑下测的。最早出现打开基本例子异常时,打开本地网络中另一台电脑测试,也是同样的问题。从dump文件看很可能跟打洞有关。通过这个网站可以打开查看dump文件:https://fippo.github.io/webrtc-dump-importer/
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page