简体   繁体   English

iOS OpenTok音频视频通话已禁用视频,原因是在iOS Simulator和路由会话上未记录的原因

[英]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. 在iOS模拟器上测试带有路由会话的视频呼叫时,用户会以未经证实的原因禁用其视频。

On the latest version of OpenTok 2.15.3 we can see that the possible reasons for video being disabled are: 在最新版本的OpenTok 2.15.3中,我们可以看到视频被禁用的可能原因是:

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 : 在iOS 11模拟器上,在尝试订阅后,我立即使用OTSubscriberVideoEventReason == 2启用了视频,然后在通过OTSubscriberVideoEventReason == 4禁用了OTSubscriberVideoEventReason == 4 ,然后在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 ? 此外,它只是在模拟器上发生,这使我认为设置没有任何真正的问题,但是真正的问题是, OTSubscriberVideoEventReason == 4是什么?

TokBox Developer Evangelist here. 这里是TokBox开发人员的传播者。

Yes, unfortunately, we didn't publicly document this specific case(sorry about that). 是的,很遗憾,我们没有公开记录此特定案例(对此感到抱歉)。 We plan on adding this in the 2.16.0 release. 我们计划在2.16.0版本中添加它。

The reason that OTSubscriberVideoEventReason=4 is dispatched is when the video in the subscriber stream was disabled because the stream uses a video codec (such as H.264) that's not supported on the simulator. 调度OTSubscriberVideoEventReason=4的原因是当订户流中的视频被禁用时,因为该流使用模拟器不支持的视频编解码器(例如H.264)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM