Configure recordings

This endpoint is used to configure recordings.

POSThttps://api.100ms.live/v2/templates/<template_id>/recordings
curl --location --request POST 'https://api.100ms.live/v2/templates/<template_id>/recordings' \ --header 'Authorization: Bearer <management_token>' \ --header 'Content-Type: application/json' \ --data-raw '[ { "name": "default", "role": "host", "maxDuration": 1800, "presignDuration": 3600, "thumbnails": { "enabled": false, "width": 1280, "height": 720, "offsets": [2], "fps": 60 }, "compositeRecording": { "browserComposite": { "autoStart": false, "autoStopTimeout": 500, "width": 1920, "height": 1080 }, "customComposite": { "enabled": false } }, "trackRecording": { "enabled": false }, "streamRecording": { "enabled": false, "width": 1920, "height": 1080 } } ]'
RESPONSE
Status: 200 OK
[ { "name": "default", "role": "host", "maxDuration": 1800, "presignDuration": 3600, "thumbnails": { "width": 1280, "height": 720, "offsets": [2], "fps": 60 }, "compositeRecording": { "browserComposite": { "autoStopTimeout": 500, "width": 1920, "height": 1080 }, "customComposite": {} }, "trackRecording": {}, "streamRecording": { "width": 1920, "height": 1080 } } ]

Arguments

NameTypeDescriptionRequired
template_id
— path param
stringUnique identifier of the template you wish to update destinations details for.
Example: 6316d5ca5a2635a5849a0216
Yes
recordingConfigs
listList of recordingConfig objects corresponding for the given template. Currently only one recordingConfig object is allowed.Yes

RecordingConfig Object

NameTypeDescriptionRequired
namestringA string value to identify the configurationYes
rolestringOne of the roles present in templateYes
maxDurationintSets the maximum duration, in seconds, of the recording. For example, 1800 seconds(30 minutes)No
presignDurationintIndicates the expiry of the pre-signed URLs—the duration for which the pre-signed URL should be signedNo
thumbnailsobjectObject of type thumbnails. This can be used to configure thumbnail's dimensionNo
compositeRecordingobjectObject of type compositeRecordingNo
trackRecordingobjectObject of type trackRecordingNo
streamRecordingobjectObject of type streamRecordingNo

CompositeRecording Object

NameTypeDescriptionRequired
browserCompositeobjectObject of type browserCompositeNo
customCompositeobjectObject of type customCompositeNo

BrowserComposite Object

NameTypeDescriptionRequired
autoStartbooleanIndicates whether recordings should automatically start on room join for this destination. Disabled by defaultNo
autoStopTimeoutintMaximum duration to wait before automatically stopping recording after all peers leaveNo
widthintIndicates the width of the screen to be recorded in pixels. For example, 1280 pixelsNo
heightintIndicates the height of the screen to be recorded in pixels. For example, 720 pixelsNo

CustomeComposite Object

NameTypeDescriptionRequired
enabledbooleanEnable the custom composite recording for rooms belonging to the template. Disabled by defaultNo

StreamRecording Object

NameTypeDescriptionRequired
enabledbooleanEnable the stream recording for rooms belonging to the template. Disabled by defaultNo

TrackRecording Object

NameTypeDescriptionRequired
enabledbooleanEnable the track recording for rooms belonging to the template. Disabled by defaultNo

Retrieve current recordings configuration

GEThttps://api.100ms.live/v2/templates/<template_id>/recordings
curl --location --request GET 'https://api.100ms.live/v2/templates/<template_id>/recordings' \ --header 'Authorization: Bearer <management_token>'
RESPONSE
Status: 200 OK
[ { "name": "default", "role": "host", "maxDuration": 1800, "presignDuration": 3600, "thumbnails": { "width": 1280, "height": 720, "offsets": [2], "fps": 60 }, "compositeRecording": { "browserComposite": { "enabled": true, "autoStopTimeout": 500, "width": 1920, "height": 1080 }, "customComposite": {} }, "trackRecording": {}, "streamRecording": { "width": 1920, "height": 1080 } } ]

Have a suggestion? Recommend changes ->

Run in postman

Was this helpful?

1234