Skip to content

Media Player

levching edited this page Apr 15, 2020 · 3 revisions

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");
});
Clone this wiki locally