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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectId": "<projectId>",
"sceneName": "<sceneName>",
"files": "<files>"
},
"name": "livereacting_create_scene_with_playlist"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fade | No | true makes each video fade out and the next one fade in, picture and sound. The videos do not overlap, so the playlist keeps its length. Defaults to false. | |
| 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. | |
| fadeDuration | No | Length of the fade in seconds: 0.5, 1, 1.5 or 2. The fade-out and the fade-in each take this long. It has an effect only when fade is true. Defaults to 1. | |
| adPlaceholder | No | Video playlists only. The video that plays during ad breaks. Send fileId for one video or files for several. Every file must be a video that has finished importing and encoding. This replaces the whole current setting; null removes it. A new list or order starts again from the first video. Leave it out to keep the current setting. | |
| 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. |