C# Класс MoviePlayerSample, Shrednought

Наследование: MonoBehaviour
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
movieName string

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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.

Описание методов

Awake() публичный Метод

Initialization of the movie surface
public Awake ( ) : void
Результат void

OnApplicationPause() публичный Метод

Pauses video playback when the app loses or gains focus
public OnApplicationPause ( bool wasPaused ) : void
wasPaused bool
Результат void

Start() публичный Метод

public Start ( ) : void
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void

Описание свойств

movieName публичное свойство

public string movieName
Результат string