Set Media State

Set the status of the media source
Set Media State Dialog
Set Media State Dialog

Parameters

Connection
Select
Default:
Default

Select the configured OBS Studio Connection to connect to

ValueDescription
Default

Only the default configured OBS Studio connection

Any

All configured OBS Studio connections

Scene
Combobox

Select a scene from the list populated from OBS Studio

You can also manually type a name into the box, or utilize %variable% syntax to insert an argument value.
Source
Combobox

Select a source from the list populated from OBS Studio

You can also manually type a name into the box, or utilize %variable% syntax to insert an argument value.
State
Select required

Select the playback state for the selected Media

ValueDescription
Play

Play your Media Source

Pause

Pause your Media Source

Restart

Restart your Media Source

Stop

Stop your Media Source

Next

Go next on your Media Source

Previous

Go to the previous on your Media Source

Variables

NameTypeDescription
 
Variables generated by all triggers and available within all action executions.

C# Usage

public void ObsSetMediaState(string scene, string source, int state, int connection = 0)
Read more in API > C# > Methods > Obs Studio > Media > Obs Set Media State