Posts

Post not yet marked as solved
1 Replies
247 Views
I'm getting an issue where my fairplay video playback fails by raising AVPlayerItemFailedToPlayToEndTime with Error Domain=CoreMediaErrorDomain Code=-12927 "(null)" I can't find a single hit on google for this error code. I suspect that it has something to do with some kind of bad content in the FPS license response from the server. I can play unencrypted files OK. Its just the FPS content that fails. But my DRM resource loader delegate "acts" like it takes the license fine. I've played other vendor's FPS content using the same code and it works there. All I need is a hint as to what 12927 means. Is there some way to look this up?
Posted Last updated
.
Post not yet marked as solved
0 Replies
276 Views
Specifically I am trying to set .constrainsSeekingForwardInPrimaryContent when creating an AVPlayerInterstitialEvent but it has no effect on iOS. I don't have access to tvOS at the moment to try it there but according to the docs it should work on iOS 15 and >. let event = AVPlayerInterstitialEvent( primaryItem: App.player!.currentItem!, identifier: ad.podId, time: CMTime(seconds: ad.timeOffsetSec!, preferredTimescale: 1), templateItems: adPodTemplates, // sadly on iOS these restrictions seem to simply not work restrictions: [ .constrainsSeekingForwardInPrimaryContent, .requiresPlaybackAtPreferredRateForAdvancement ], resumptionOffset: .zero, playoutLimit: .invalid) Thoughts?
Posted Last updated
.