-
Notifications
You must be signed in to change notification settings - Fork 1
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.
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");
});
Reliable and high-quality Unity Development service. Let's Talk!
Website | AssetStore | LinkedIn | Youtube | Scripting Reference
- Build Info
- Dark Mode
- Package Info
- Runtime Permissions
- Run External App
- Immersive Mode
- PackageManager
- Popups & Preloaders
- Rate Us Dialog
- Activity
- Intent
- Settings Page
- Media Player
- Date Picker Dialog
- Time Picker Dialog
- Locale
- Wheel Picker Dialog
- Developer Console Setup
- Connecting to The Service
- Purchase Flow
- Transactions Validation
- Subscriptions
- Licensing
- Getting Started
- Games Sing-in
- Server-side API Access
- Leaderboards
- Achievements
- Saved Games
- Image Manager
- Settings Intent