MediaPlayer8 Methods |
The MediaPlayer8 type exposes the following members.
| Name | Description | |
|---|---|---|
| Awake | ||
| CreateControllerProxy |
Abstract ControllerProxy creator method defined by each inheritor class
| |
| GetAndroidThrowableError | ||
| Initialize | Initializes the native texture, the native controller, sets a loading texture if specified. If successful(onDone called), Load() can be called | |
| Load | Loads a media from an URL to your media file/stream or use "path/to/file/file.extension" to play the file in "path/to/project/Assets/StreamingAssets/path/to/file/file.extension" | |
| LoadViaController | ||
| OnDestroy |
Releasing resources. Disposing NativeController
| |
| OnPlayerStateChanged |
Called whenever the player's state changes
See PlayerState | |
| OnVideoSizeChanged |
Called when a new media is loaded AND it has a different frame size
| |
| RetrieveStreamingAssetIfNeeded |
For mobile local files, we need to retrieve the file from the package and copy it to persistentDataPath in order to play it
| |
| Update |
Updating the texture each frame
|