Post

Replies

Boosts

Views

Activity

Picture-In-Picture not starting in the background with AVFoundation based player
While working on an app that uses a custom player based on AVFoundation, ie not based on AVPlayerViewController, I was unable to get picture-in-picture to start while the app was in the background with Group Activities. It turns out we were initiating and configuring our AVPictureInPictureController after coordinating our GroupSession with the players AVPlayerPlaybackCoordinator. Once we setup the picture-in-picture controller first, then coordinated the group session, background picture-in-picture started working. Hope this helps others in the same situation.
0
0
507
Sep ’21
What factors determine the result of AVAsset.compatibleWithAirPlayVideo?
I'm curious to know what AVAsset usse to determine the return value of compatibleWithAirPlayVideo - https://developer.apple.com/documentation/avfoundation/avasset/1390333-compatiblewithairplayvideo?language=objc. I was unable to locate anything in the documentation and an internet search doesn't return up any answers either. There are certain instances where I would like an AVURLAsset to return false from this function, and I'd like to know if there is a key that can be added to the m3u8 manifest to achieve this.
1
0
823
Apr ’21