-
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
Suspend and resume instead of restart video stream #980
Suspend and resume instead of restart video stream #980
Conversation
…deo stream is ready and the app enters inactive state.
@@ -434,6 +442,10 @@ - (void)didEnterStateVideoStreamReady { | |||
} | |||
} | |||
|
|||
- (void)didEnterStateVideoStreamSuspended { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is unused
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True. I wasn‘t sure if the state methods must be implemented. I can remove it if it‘s not necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@NicoleYarroch I added the requested suspended notification to the method.
Every time the video comes to the foreground, a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left one comment on the PR about fixing notifications.
Fixes #979
This PR is ready for review.
Risk
This PR makes minor API changes:
shouldRestartVideoStream
is deprecated as not used anymore and can be deleted with the next major version.Testing Plan
There was a unit test if the app enters inactive state. The test was changed to match the new state.
Enhancements
CLA