VideoRuntimeObjectPixiRenderer

VideoRuntimeObjectPixiRenderer

The PIXI.js renderer for the VideoRuntimeObject.

Constructor

new VideoRuntimeObjectPixiRenderer(runtimeObject, runtimeScene)

Parameters:
Name Type Description
runtimeObject

The object to render

runtimeScene

The gdjs.RuntimeScene in which the object is

Source:

Methods

getCurrentTime()

Get the current time of the playback.

Source:

getDuration()

Get the duration of the video.

Source:

getPlaybackSpeed()

Return the playback speed (1 = 100%)

Source:

getVolume()

Get the volume on video, between 0 and 1.

Source:

isEnded()

Return true if the video has ended.

Source:

isLooped()

Return true if the video is looping

Source:

isMuted()

Return true if the video is muted.

Source:

isPlayed()

Return true if the video is playing

Source:

onDestroy()

To be called when the object is removed from the scene: will pause the video.

Source:

pause()

Pause the video

Source:

play()

Start the video

Source:

setCurrentTime()

Set the current time of the video.

Source:

setHeight(height)

Set the rendered video height

Parameters:
Name Type Description
height

The new height, in pixels.

Source:

setLoop(enable)

Set the loop on video in renderer

Parameters:
Name Type Description
enable

true to loop the video

Source:

setMute(enable)

Set or unset mute on the video.

Parameters:
Name Type Description
enable

true to mute

Source:

setPlaybackSpeed()

Set the playback speed (1 = 100%)

Source:

setVolume(volume)

Set the volume of the video, between 0 and 1.

Parameters:
Name Type Description
volume

The new volume.

Source:

setWidth(width)

Set the rendered video width

Parameters:
Name Type Description
width

The new width, in pixels.

Source: