OpenTok Video Call Issue when an application moves from the background state to the foreground

I made a video call using OpenTok (Tokbox for video calls among multiple users). I encounter a random problem in my application when my application enters the background and the application goes to the fore again.

The session remains connected, but the video is not displayed to other users (a black screen is displayed).

I turned on publishing at the publisher and subscribed to the currents subscription video. _publisher.publishVideo = YES; _currentSubscriber.subscribeToVideo = YES; Is there any way to fix this problem.

Any help is noticeable.

+4
source share

Source: https://habr.com/ru/post/1608935/


All Articles