Add a scene that plays a video playlist
livereacting_create_scene_with_playlistAdd a scene to a project and fill it with a video playlist in one call. This is the normal way to put content into a project, because a new project is created empty. It behaves differently depending on what the project already holds, and you do not have to choose: on a project with no scenes it creates the first scene and makes it active, which a stream needs in order to play anything; on a project that already has a scene it also wires the previous scene to switch automatically into this new one when its playlist ends, which is how a 24/7 channel is chained day by day. In that second case the previous scene must already contain a video playlist layer, otherwise the call is refused. File ids come from livereacting_list_media or livereacting_import_media, and every file has to have finished importing and encoding. To change the playlist afterwards use livereacting_set_playlist. This builds a video playlist. For an audio playlist use livereacting_add_layer. Text, image and interactive overlays are readable but can only be created in the LiveReacting Studio. Sending audio files here produces a video playlist holding audio, which is not what the customer wants and is not reported as an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loop | No | Repeat the playlist forever. Defaults to true, which is what a 24/7 channel needs. Pass loop: false for a clip that must play once and then stop. It is ignored when this scene auto-switches into another one. | |
| files | Yes | The videos this scene plays, in order. At least 1, at most 600. | |
| volume | No | Playback volume, 0 to 10. Defaults to 10. | |
| layerName | No | Name for the playlist layer, 19 characters or less. Defaults to "Video playlist layer". | |
| projectId | Yes | Project id, from livereacting_list_projects. | |
| sceneName | Yes | Name for the new scene, 1 to 60 characters. | |
| previousSceneId | No | Which existing scene should auto-switch into the new one. Defaults to the last scene in the project. Ignored when the project has no scenes yet. |