MediaPlayer8 Class |
Namespace: frame8.Logic.Media.MediaPlayer
public abstract class MediaPlayer8 : MonoBehaviour
The MediaPlayer8 type exposes the following members.
| Name | Description | |
|---|---|---|
| MediaPlayer8 |
| Name | Description | |
|---|---|---|
| Initialized |
If the media player is ready to load a Media Source
| |
| NativeController |
The controller clas through which common commands can be requested and common callbacks are received
| |
| NativeEventsStartIndex | Need to be changed accordingly when more than 1 rendering native plugin is used | |
| Params |
Abstract params defined by each inheritor class
| |
| Rendering |
Includes setup config. like which texture to use, which renderer, when, what loading texture to use (if any) etc.
|
| 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
|