TVMLKit JS - error parameter for fairplay callbacks

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.

Replies

The error parameter has to be a string in this case