Skip to content

Improvement: Use AVPlayerItem APIs to track rebuffering #232

@andrewjl-mux

Description

@andrewjl-mux

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions