Skip to content

Studio Script Reference: VAST actions

These actions control VAST video ad layers. All require the UUID of the target VAST layer, found under the Advanced section of the inspector when the layer is selected.

Not supported in cloud render contexts.

context.actions.vastMute()

Mutes or unmutes a VAST ad.

Example:

js
context.actions.vastMute({
  target: 'dc61dc36-b0f4-4dc9-a9a8-7f4ec0088ac7',
  muted: true
});

context.actions.vastPause()

Pauses a VAST ad.

Example:

js
context.actions.vastPause({
  target: 'dc61dc36-b0f4-4dc9-a9a8-7f4ec0088ac7'
});

context.actions.vastPlay()

Plays a VAST ad.

Example:

js
context.actions.vastPlay({
  target: 'dc61dc36-b0f4-4dc9-a9a8-7f4ec0088ac7'
});

context.actions.vastSetVolume()

Sets the volume of a VAST ad.

Example:

js
context.actions.vastSetVolume({
  target: 'dc61dc36-b0f4-4dc9-a9a8-7f4ec0088ac7',
  volume: 75 // 0–100
});

context.actions.vastSkip()

Skips a VAST ad.

Example:

js
context.actions.vastSkip({
  target: 'dc61dc36-b0f4-4dc9-a9a8-7f4ec0088ac7'
});