C# Class MoviePlayerSample, Shrednought

Inheritance: MonoBehaviour
ファイルを表示 Open project: 9/Shrednought

Public Properties

Property Type Description
movieName string

Public Methods

Method Description
Awake ( ) : void

Initialization of the movie surface

OnApplicationPause ( bool wasPaused ) : void

Pauses video playback when the app loses or gains focus

Start ( ) : void
Update ( ) : void

Private Methods

Method Description
DelayedStartVideo ( ) : IEnumerator

Auto-starts video playback

IssuePluginEvent ( MediaSurfaceEventType eventType ) : void
OVR_Media_Surface ( IntPtr surfaceTexId, int surfaceWidth, int surfaceHeight ) : IntPtr
OVR_Media_Surface_Init ( ) : void
OVR_Media_Surface_SetEventBase ( int eventBase ) : void
OnApplicationQuit ( ) : void
RetrieveStreamingAsset ( string mediaFileName ) : IEnumerator

Construct the streaming asset path. Note: For Android, we need to retrieve the data from the apk.

StartVideoPlayerOnTextureId ( IntPtr textureId, string mediaPath ) : AndroidJavaObject

Set up the video player with the movie surface texture id.

Method Details

Awake() public method

Initialization of the movie surface
public Awake ( ) : void
return void

OnApplicationPause() public method

Pauses video playback when the app loses or gains focus
public OnApplicationPause ( bool wasPaused ) : void
wasPaused bool
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

movieName public_oe property

public string movieName
return string