OpenBroadcaster Documentation
controllers / shows.php

Shows

Controller

Shows controller manages single scheduled timeslot items.

public  delete ( )

Delete a scheduled show. Requires 'manage_timeslots' unless the show is owned by the user.

Parameters
id
API Route DELETE /api/v2/shows/(:id:)
public  get ( )

Get an individual scheduled show.

Parameters
id
Returns show
API Route GET /api/v2/shows/(:id:)
public  get_last_player ( )

Get the last selected player on the schedules page for the current user.

Returns player
public  save ( )

Edit or save a new show.

Parameters
id Optional when saving a new show.
player_id
mode One time, or every X interval.
x_data When mode is set to an interval, x_data specifies every X.
start
duration
stop
item_type
item_id
API Route POST /api/v2/shows
public  search ( )

Get shows between two given dates/times. This function is used for the UI/API, but also to detect potential scheduling collisions.

Parameters
start
end
player
Returns shows
API Route GET /api/v2/shows
public  set_last_player ( )

Set the last selected player so we can view schedules for that player immediately when loading the page again some other time. This will have to be generalized for other UI elements at some point. This is a user-specific setting, so no special permissions are necessary.

Parameters
player