API Reference - Interactive Live Streaming
This page describes the API references for interactive live streaming.
Last updated
This page describes the API references for interactive live streaming.
Last updated
/api/v1/misc/generate-token
please pass apiKey with tied with your sariska account
iufwenufewifweifiuTbddhbdjhjfbjfjwfjwfj
pass exp claim of jwt token
24 hours
pass nbf claim of jwt token
pass scope of token it can be messaging or media or sariska or leave it blank
/terraform/v1/hooks/srs/startRecording
The room name recorder needs to join.
room1234
Whether the live streaming needs to be in low latency
true
The player side codec default is H264
H265
Please set this flag to true if you want MP4 recordings of the live stream.
true
If true
is passed, the stream will be transcoded into 5 different variants: 720p (HD), 480p (HD_MID), 360p (MID), 240p (MID_LOW), and 240p (LOW) with bitrates of 2628kbps, 1128kbps, 878kbps, 528kbps, and 264kbps, respectively. This will ensure the best possible viewing experience, regardless of the user's network or device.
true
Please set this flag to true if you want to access the Video on Demand (VOD) URL. The VOD will be available after the live streaming has finished.
true
Please set this flag to true if you want the participant name to appear in the video tiles.
true
Please set this flag to true if you want the streaming to be audio-only.
true
By default, the live streaming layout is optimized for desktop
. If you want it to be optimized for mobile, you can pass the flag mobile
mobile
By default, adaptive
bitrate streaming is enabled between the videobridge and recorder for each participant's stream. However, if you want to record and stream each participant's original quality, you can pass the flag as HD
HD
The default time interval for the recorder is 1 minute. If a different time interval is set, the recorder will remain active for that duration, and if all participants leave before the interval ends, a new streaming API call must be made to restart the recording.
6000 equivalent to 1 min
This is a list of additional RTMP URLs for platforms not included in the above-listed platforms or host URL is dynamic
List of RTMP server keys for simulcast live streaming to all platforms, including Instagram, YouTube, Twitch, Vimeo, Periscope, Facebook, DLive, Mixcloud, and Restream.
[{"key":"youtube","value":"youtube_stream_key"},{"key":"facebook","value":"facebook_stream_key"},{"key":"twitch","value":"twitch_stream_key"},{"key":"vimeo","value":"vimeo_stream_key"},{"key":"instagram","value":"instagram_stream_key"}]
/terraform/v1/hooks/srs/stopRecording
stops streaming of given room name
room1234