首页 > 解决方案 > 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?

标签: iosios-simulatoropentoktokbox

解决方案


TokBox 开发者布道者在这里。

是的,很遗憾,我们没有公开记录这个具体案例(对此感到抱歉)。我们计划在 2.16.0 版本中添加它。

调度的原因OTSubscriberVideoEventReason=4是当订阅者流中的视频被禁用时,因为流使用了模拟器不支持的视频编解码器(例如 H.264)。


推荐阅读