Media Player - StansAssets/com.stansassets.android-native GitHub Wiki

The AN_MediaPlayer class can be used to control the playback of audio/video files and streams.

Make sure Media Player API state is Enabled before you use it.

MediaPlayer

Play Remove Video

The ShowRemoteVideo method will open full-screen video player and will automatically play the video by a given URL. See the snippet below:

using SA.Android.Media;
...

var movieURL = "https://videocdn.bodybuilding.com/video/mp4/62000/62792m.mp4";
AN_MediaPlayer.ShowRemoteVideo(movieURL, () => {
    Debug.Log("Video closed");
});