piemonte / Player

▶️ Play and stream media in Swift
MIT License
2.08k stars 334 forks source link

Expose AVPlayer property #244

Closed jannemecek closed 2 years ago

jannemecek commented 2 years ago

This is added so we can remove and restore AVPlayer on backgrounding and foregrounding respectively per Apple's documentation https://developer.apple.com/library/archive/qa/qa1668/_index.html#//apple_ref/doc/uid/DTS40010209-CH1-VIDEO

This could possibly be done inside Player itself but not sure if we want to add more flags for background/foreground changes.