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

Improvement: Use AVPlayerItem APIs to track rebuffering #232

Open
andrewjl-mux opened this issue Feb 24, 2024 · 0 comments
Open

Improvement: Use AVPlayerItem APIs to track rebuffering #232

andrewjl-mux opened this issue Feb 24, 2024 · 0 comments
Assignees

Comments

@andrewjl-mux
Copy link
Contributor

Detecting changes in buffer state
In order to show an activity indicator when the player stalls, we need to register 3 observers using KVO (Key-Value Observing) on the following dynamic properties of an AVPlayerItem:
isPlaybackBufferEmpty
isPlaybackBufferFull
isPlaybackLikelyToKeepUp

https://www.cyrilchandelier.com/avplayer-buffering

@andrewjl-mux andrewjl-mux self-assigned this Feb 24, 2024
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

No branches or pull requests

1 participant