CloudStreamPackage
If you want to support CloudStream 3 as an external player, then this shows how to play any video link For basic interactions, just intent.data = uri works
However for more advanced use, CloudStream 3 also supports playlists of MinimalVideoLink and MinimalSubtitleLink with a String[] of JSON These are passed as LINKS_EXTRA and SUBTITLE_EXTRA respectively
Properties
Functions
Internally uses activityResultLauncher, use this when the activity has a result like watched position
Safe version of onResult, we don't trust extension devs to not crash the app
Before intent is sent, this function is called to put extra data into the intent.
This function is called when the action is clicked.
Safe version of runAction, as we don't trust extension devs to handle exceptions
Safe version of shouldShow, as we don't trust extension devs to handle exceptions, however no dev should throw in shouldShow