Skip to content
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

fix(ios): ensure playback stopped in background #3587

Merged
merged 9 commits into from
Mar 15, 2024

Conversation

freeboub
Copy link
Collaborator

Summary

Fix: #3568 and #2954

Do not pause playback in handlePlaybackLikelyToKeepUp and in seek call

start reviewing onBuffer event (not yet clean)

Motivation

It doesn't make sens to pause the playback in that case. see apple documentation about this event: https://developer.apple.com/documentation/avfoundation/avplayeritem/1390348-playbacklikelytokeepup
Even if buffer is empty, we don't want to pause the playback, the player shall automatically resume it.

Test plan

Tested with the sample.
I also ensure pip works fine

@freeboub freeboub changed the title Fix/ensure playback stopped in background fix(ios): ensure playback stopped in background Mar 14, 2024
@KrzysztofMoch KrzysztofMoch merged commit 41c6785 into master Mar 15, 2024
11 checks passed
@KrzysztofMoch KrzysztofMoch deleted the fix/ensurePlaybackStoppedInBackground branch March 15, 2024 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: video continues playing when app goes to the background or navigate to another page
2 participants