Constructor
new VideoRuntimeObject(runtimeScene, videoObjectData)
Parameters:
Name | Type | Description |
---|---|---|
runtimeScene |
The scene the object belongs to. |
|
videoObjectData |
The data defining the object |
Methods
extraInitializationFromInitialInstance(initialInstanceData)
Initialize the extra parameters that could be set for an instance.
Parameters:
Name | Type | Description |
---|---|---|
initialInstanceData |
The initial instance data |
getCurrentTime()
Get the current time of the video object.
Returns:
Type | Description |
---|---|
The current time of the video |
getDuration()
Return the total time of the video.
Returns:
Type | Description |
---|---|
The duration of the video |
getHeight()
Get the height of the video object.
Returns:
Type | Description |
---|---|
The current height of the object |
getOpacity()
Get object opacity.
Returns:
Type | Description |
---|---|
The current opacity |
getPlaybackSpeed()
Get the playback speed of the video object.
Returns:
Type | Description |
---|---|
The current playback speed of the video. |
getVolume()
Get the volume of the video object.
Returns:
Type | Description |
---|---|
The current video's volume, betwenn 0 and 100. |
getWidth()
Get the width of the video object.
Returns:
Type | Description |
---|---|
The current width of the object |
isEnded()
Check if the video has ended.
Returns:
Type | Description |
---|---|
Has the video ended? |
isLooped()
Check if the video is looping.
Returns:
Type | Description |
---|---|
Is the video looping? |
isMuted()
Return the state muted of video object.
Returns:
Type | Description |
---|---|
Is the video muted? |
isPaused()
Check if the video is paused.
Returns:
Type | Description |
---|---|
Is the video being paused? |
isPlayed()
Check if the video is being played.
Returns:
Type | Description |
---|---|
Is the video being played? |
mute(enable)
Set the state muted of the video.
Parameters:
Name | Type | Description |
---|---|---|
enable |
The new state. |
pause()
Pause the video.
play()
Play the video.
setAngle(angle)
Set the angle of the object.
Parameters:
Name | Type | Description |
---|---|---|
angle |
The new angle of the object. |
setCurrentTime(time)
Set the new time of the video object.
Parameters:
Name | Type | Description |
---|---|---|
time |
The new time. |
setHeight(height)
Set the height of the video.
Parameters:
Name | Type | Description |
---|---|---|
height |
The new height in pixels. |
setLoop(enable)
Set the state looped of the video.
Parameters:
Name | Type | Description |
---|---|---|
enable |
true to loop the video |
setOpacity(opacity)
Set object opacity.
Parameters:
Name | Type | Description |
---|---|---|
opacity |
The new opacity of the object (0-255). |
setPlaybackSpeed(playbackSpeed)
Set the new playback speed of the video object.
Parameters:
Name | Type | Description |
---|---|---|
playbackSpeed |
The new playback speed. |
setVolume(volume)
Set the volume of the video object.
Parameters:
Name | Type | Description |
---|---|---|
volume |
The new volume, between 0 and 100. |
setWidth(width)
Set the width of the video.
Parameters:
Name | Type | Description |
---|---|---|
width |
The new width in pixels. |
setX(x)
Set object position on X axis.
Parameters:
Name | Type | Description |
---|---|---|
x |
The new position X of the object. |
setY(y)
Set object position on Y axis.
Parameters:
Name | Type | Description |
---|---|---|
y |
The new position Y of the object. |