我目前正在尝试开发一个与 OpenTok 集成的基于 Cordova 的移动应用程序。我正在使用下面的插件: https://github.com/songz/cordova-plugin-opentok (版本1.0.3)
当我尝试从移动应用程序订阅从 Google Chrome 网络浏览器(版本 51.0.2704.106 m)发布的流时,出现黑屏并出现以下错误:
E/OTPlugin: subscriber exception: Internal error -- WebRTC subscriber error., stream id: xxxxxxxx-xxxx-xxxx-xxxx-06afdb1e6504
此外,在 Mozilla Firefox Web 浏览器(版本 47.0.1)中,我订阅的流每隔几秒就会卡住(在移动应用程序上)。
上面,我使用了插件文档中的术语“发布”和“订阅”。
你能帮我解决这些问题吗?
谢谢, 丹尼斯
最佳答案
据我所知,iOS 浏览器不支持 WebRTC。如果您想在 iOS 上使用 WebRTC,您将需要一个 native 应用程序。特别是,要使用 TokBox 构建 native iOS 应用程序,包括音频/视频通话、文本聊天、屏幕共享和注释等功能的实时通信,您可以在以下位置找到它:
https://github.com/opentok/one-to-one-sample-apps
https://github.com/opentok/textchat-acc-pack
https://github.com/opentok/screensharing-annotation-acc-pack
关于javascript - Cordova OpenTok 集成 Chrome 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38523253/