Click or drag to resize

MediaPlayer8 Methods

The MediaPlayer8 type exposes the following members.

Methods
  NameDescription
Protected methodAwake
Protected methodCreateControllerProxy
Abstract ControllerProxy creator method defined by each inheritor class
Protected methodGetAndroidThrowableError
Public methodInitialize

Initializes the native texture, the native controller, sets a loading texture if specified.

If successful(onDone called), Load() can be called

Public methodLoad

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"

Protected methodLoadViaController
Protected methodOnDestroy
Releasing resources. Disposing NativeController
Protected methodOnPlayerStateChanged
Called whenever the player's state changes

See PlayerState

Protected methodOnVideoSizeChanged
Called when a new media is loaded AND it has a different frame size
Protected methodRetrieveStreamingAssetIfNeeded
For mobile local files, we need to retrieve the file from the package and copy it to persistentDataPath in order to play it
Protected methodUpdate
Updating the texture each frame
Top
See Also