Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 241
Nishant Tyagi Avatar asked Nov 10 '22 04:11

Nishant Tyagi


1 Answers

  • Click on Capabilities and turn on Background Modes -> Tern On -Audio,AirPlay,and picture. it will work fine.
like image 144
Rohit Nishad Avatar answered Nov 14 '22 21:11

Rohit Nishad