Skip to content

diogot/AVFoundation-Combine

 
 

Repository files navigation

Combine wrappers for AVPlayer

AVFoundation-Combine

Combine extensions for AVFoundation

The purpose of this project is to add Combine wrappers around AVFoundation (specifically AVPlayer and AVPlayerItem) APIs. For a full technical rundown and detailed explanation please visit https://jozsef-vesza.dev/tags/combine/

You can also check out our talk on the topic:

Custom Publishers

Publishers

All publishers are designed to be lazy: they only start observing properties when subscribed to.

Publisher Source
AVPlayer
playheadProgressPublisher(interval:) addPeriodicTimeObserver(forInterval:queue:using:)
currentItemPublisher() currenItem
ratePublisher() rate
AVPlayerItem
statusPublisher() status
durationPublisher() duration
isPlaybackLikelyToKeepUpPublisher() isPlaybackLikelyToKeepUp
isPlaybackBufferEmptyPublisher() isPlaybackBufferEmpty
didPlayToEndTimePublisher(_:) .AVPlayerItemDidPlayToEndTime Notification

About

Combine extensions for AVFoundation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%