-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video stream is stopped and restarted immediately when app enters background #858
Comments
I can't reproduce this, I'm not seeing |
@SatbirTanda This was an issue reported by @rafal on the Slack channel. Is your setup for video streaming different from the documentation? If so, can you post your setup here? If not, we will close this issue. |
The setup is according to the documentation. I even can show you place in the code which causes the error.
Function didEnterStateAppInactive is called on notification UIApplicationWillResignActiveNotification and in this function property restartVideoStream is set to yes. Then, when the video streaming stops the function didEnterStateVideoStreamStopped is called and when property restartVideoStream is set to yes the video streaming starting again. |
logs.txt |
I have reproduced this bug with SDL_iOS v. 5.1.1. It appears that the video and audio streams are restarted when the app re-enters the foreground. I am working on a fix. |
A pull request has been created to fix this bug. |
Bug Report
When app enters the background, video streaming should pause until the app re-enters the foreground. Currently, video streaming stops and then restarts immediately. A
SDLVideoStreamDidStart
notification is sent even when the app is in the background.Reproduction Steps
appType
=NAVIGATION
) to Core.Expected Behavior
The
SDLVideoStreamDidStart
notification is not sent until the app on the iPhone is brought to the foreground.Observed Behavior
The
SDLVideoStreamDidStart
notification is sent while the app is still in the background.OS & Version Information
The text was updated successfully, but these errors were encountered: