You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
orSRGMediaPlayerController
get confused: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.
The text was updated successfully, but these errors were encountered: