In our iOS application we have two different controller. one controller is to publish the stream and second controller is to play the stream.
Here is the flow
User 1 is publishing the video through publishStream.
User 2 is playing the stream through playStream.
We need to show a pop up that publisher has stoped the stream.
Earlier I was checking this on subscriber side through the following code
But Now I am facing another issue. The above case is also getting meet if user put the app in background during the live video and come back again.
Is there any way so that we can clearly define if video has been ended by publisher.
Here is the flow
User 1 is publishing the video through publishStream.
User 2 is playing the stream through playStream.
We need to show a pop up that publisher has stoped the stream.
Earlier I was checking this on subscriber side through the following code
Code:
- (void)changeStreamStatus:(FPWCSApi2Stream *)stream {
switch ([stream getStatus]) {
casekFPWCSStreamStatusFailed:
{ if( !stream.isPublished)
{
// Method to show pop up
}
}
}
}
But Now I am facing another issue. The above case is also getting meet if user put the app in background during the live video and come back again.
Is there any way so that we can clearly define if video has been ended by publisher.
Last edited: