Mp4TextureProvider
APJS Script API reference for the Mp4TextureProvider class.
| Type | Name | Interface Description |
|---|---|---|
| Variables | currentTime: number | • Function: currentTime |
| Variables | duration: number | • Function: duration |
| Variables | loopCount: number | • Function: Gets the number of times the video will loop. -1 means infinite loop. |
| Functions | pause(): void | • Function: Pauses video playback at the current position. |
| Functions | play(): void | • Function: Starts video playback from the beginning. |
| Functions | resume(): void | • Function: Resumes paused video playback. |
| Functions | stop(): void | • Function: Stops video playback and resets to initial state. |
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use Mp4TextureProvider here
}
onUpdate(deltaTime: number) {
}
}