1 Reply
      Latest reply on Mar 19, 2019 4:17 PM by jfoo
      apgl Level 1 Level 1 (0 points)

        Hi,

         

        I've implemented playback of FairPlay encrypted streams in my app, and would like to handle load errors better.

         

        Now, the documentation for `loadCertificate`, `loadAssetID` and `loadKey` on `MediaItem` states that the callback parameter on all functions has an error parameter. However, invoking the callback with an error parameter does not result in anything. The media item will continue to try loading forever or until the user exits the Player.

         

        I've tried using Error objects, String, Boolean etc as the error parameter. Nothing seems to work.

         

        Has anyone implemented this? Am I using the callback wrong? Any help is appreciated.

         

        BTW: My test device is running the latest version of tvOS 12.