Appearance
Studio Script Reference: Video actions
These actions control Video layers. All require the UUID of the target video layer, found under the Advanced section of the inspector when the layer is selected.
Not supported in cloud render contexts.
context.actions.muteVideo()
Mutes or unmutes a video layer.
Example:
js
context.actions.muteVideo({
target: 'dc61dc36-b0f4-4dc9-a9a8-7f4ec0088ac7',
muted: true
});context.actions.pauseVideo()
Pauses a video layer.
Example:
js
context.actions.pauseVideo({
target: 'dc61dc36-b0f4-4dc9-a9a8-7f4ec0088ac7'
});context.actions.playVideo()
Plays a video layer.
Example:
js
context.actions.playVideo({
target: 'dc61dc36-b0f4-4dc9-a9a8-7f4ec0088ac7'
});context.actions.seekVideo()
Seeks a video layer to a specific time position.
Example:
js
context.actions.seekVideo({
target: 'dc61dc36-b0f4-4dc9-a9a8-7f4ec0088ac7',
currentTime: 30 // seconds
});context.actions.videoSetVolume()
Sets the volume of a video layer.
Example:
js
context.actions.videoSetVolume({
target: 'dc61dc36-b0f4-4dc9-a9a8-7f4ec0088ac7',
volume: 75 // 0–100
});