Constructor
new VideoRuntimeObjectPixiRenderer(runtimeObject, runtimeScene)
Parameters:
Name | Type | Description |
---|---|---|
runtimeObject |
The object to render |
|
runtimeScene |
The gdjs.RuntimeScene in which the object is |
Methods
getCurrentTime()
Get the current time of the playback.
getDuration()
Get the duration of the video.
getPlaybackSpeed()
Return the playback speed (1 = 100%)
getVolume()
Get the volume on video, between 0 and 1.
isEnded()
Return true if the video has ended.
isLooped()
Return true if the video is looping
isMuted()
Return true if the video is muted.
isPlayed()
Return true if the video is playing
onDestroy()
To be called when the object is removed from the scene: will pause the video.
pause()
Pause the video
play()
Start the video
setCurrentTime()
Set the current time of the video.
setHeight(height)
Set the rendered video height
Parameters:
Name | Type | Description |
---|---|---|
height |
The new height, in pixels. |
setLoop(enable)
Set the loop on video in renderer
Parameters:
Name | Type | Description |
---|---|---|
enable |
true to loop the video |
setMute(enable)
Set or unset mute on the video.
Parameters:
Name | Type | Description |
---|---|---|
enable |
true to mute |
setPlaybackSpeed()
Set the playback speed (1 = 100%)
setVolume(volume)
Set the volume of the video, between 0 and 1.
Parameters:
Name | Type | Description |
---|---|---|
volume |
The new volume. |
setWidth(width)
Set the rendered video width
Parameters:
Name | Type | Description |
---|---|---|
width |
The new width, in pixels. |