ios - iOS OpenTok audio-video call has video disabled with an undocumented reason on iOS Simulator and routed sessions
问题描述
While testing on the iOS Simulator a vide call with routed sessions the user gets its video disabled with an undocumented reason.
On the latest version of OpenTok 2.15.3 we can see that the possible reasons for video being disabled are:
typedef NS_ENUM(int32_t, OTSubscriberVideoEventReason) {
OTSubscriberVideoEventPublisherPropertyChanged = 1,
OTSubscriberVideoEventSubscriberPropertyChanged = 2,
OTSubscriberVideoEventQualityChanged = 3
};
on the iOS 11 simulator, right after trying to subscribe I'm getting the video enabled with OTSubscriberVideoEventReason == 2
, right after it gets disabled with OTSubscriberVideoEventReason == 4
and then I get the following error on subscriberDidDisconnectFromStream
:
Internal error -- WebRTC subscriber error.
Failed to set remote offer sdp:
Session error code: ERROR_CONTENT.
Session error description: Failed to set remote video description send
parameters..
kPCFailureSetRemoteDescription
The docs suggested trying to resubscribe, or reconnect... resubscribing didn't work. Furthermore it's only happening on the simulator, which makes me think that there is nothing really wrong with the setup, but the real question here is, what is the OTSubscriberVideoEventReason == 4
?
解决方案
TokBox 开发者布道者在这里。
是的,很遗憾,我们没有公开记录这个具体案例(对此感到抱歉)。我们计划在 2.16.0 版本中添加它。
调度的原因OTSubscriberVideoEventReason=4
是当订阅者流中的视频被禁用时,因为流使用了模拟器不支持的视频编解码器(例如 H.264)。
推荐阅读
- c# - 在 linux azure 应用服务(.net core 3.1)上发布时 SQLite 错误“数据库已锁定”。但我没有使用 SQLite
- java - Apache Giraph 日志(带有 log4j)在哪里?
- python - 如何使用 pandas 数据框转换时间戳?
- python - 将numpy数组重塑为类似于具有任意嵌套子数组的不同数组
- angular - Angular:无法从单例服务实例中获取更新的数据
- r - 在 Rcpp 中快速高效地创建字符 DataFrame
- python - 当我按“停止”时程序没有停止
- amazon-web-services - 如何从 s3 获取超过 1000 个对象
- c# - 如何在 Unity 中单击按钮时激活 RawImage?
- javascript - 如何将承诺对象存储在变量中