C# Class MoviePlayerSample, Shrednought

Inheritance: MonoBehaviour
Afficher le fichier Open project: 9/Shrednought

Méthodes publiques

Свойство Type Description
movieName string

Méthodes publiques

Méthode 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

Méthode 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 méthode

Initialization of the movie surface
public Awake ( ) : void
Résultat void

OnApplicationPause() public méthode

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

Start() public méthode

public Start ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

movieName public_oe property

public string movieName
Résultat string