简体   繁体   中英

OpenTok Video Call Issue when application goes from background state to foreground

I have done video calling using OpenTok (Tokbox Sample for video calling among multiple users). I am facing a random issue in my application when my application enters in background mode and again application is sent to foreground.

Session remains connected but the video will not be displayed to other users(Black screen is displayed).

I have enabled publishvideo in publisher and subscribe to video for currentsubscriber. _publisher.publishVideo = YES; _currentSubscriber.subscribeToVideo = YES; Is there any way to fix this issue.

Any help is appreciable.

  • Click on Capabilities and turn on Background Modes -> Tern On -Audio,AirPlay,and picture. it will work fine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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