Click or drag to resize

MediaPlayer8 Class

Base class for the 2 main module: "Simple" and "AdaptiveCache"
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          frame8.Logic.Media.MediaPlayerMediaPlayer8
            frame8.Logic.Media.MediaPlayerAdaptiveCacheMediaPlayer8
            frame8.Logic.Media.MediaPlayerSimpleMediaPlayer8

Namespace:  frame8.Logic.Media.MediaPlayer
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public abstract class MediaPlayer8 : MonoBehaviour

The MediaPlayer8 type exposes the following members.

Constructors
  NameDescription
Protected methodMediaPlayer8
Top
Properties
  NameDescription
Public propertyInitialized
If the media player is ready to load a Media Source
Public propertyNativeController
The controller clas through which common commands can be requested and common callbacks are received
Public propertyStatic memberNativeEventsStartIndex
Need to be changed accordingly when more than 1 rendering native plugin is used
Protected propertyParams
Abstract params defined by each inheritor class
Public propertyRendering
Includes setup config. like which texture to use, which renderer, when, what loading texture to use (if any) etc.
Top
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