Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FairPlay: AVPlayerItem erratic status changes when errors encountered by its AVAssetResourceLoaderDelegate #4

Open
defagos opened this issue Nov 30, 2018 · 0 comments
Labels
help wanted Extra attention is needed maintenance

Comments

@defagos
Copy link
Member

defagos commented Nov 30, 2018

When using a custom AVAssetResourceLoaderDelegate for FairPlay resource loading, and if loading fails (easy to simulate by having a resource loader immediately finish the loading request with an error), the player item suffers from erratic status changes. As a result, AVPlayerViewController or SRGMediaPlayerController get confused:

  • An error is not immediately returned to the parent player.
  • The skd resource loading process is made twice (and fails twice, of course).

When using the exact same resource loader, but with a standard HTTP stream, the behavior is correct, and the players do not get confused.

This is probably an AVFoundation bug which should be reported to Apple.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed maintenance
Projects
None yet
Development

No branches or pull requests

1 participant