RTMP Streaming & Browser Recording

Introduction

RTMP Streaming can be used to live stream your video conferencing apps to platforms like Facebook, YouTube, Twitch, etc. Browser Recording can be used to record your video conferencing apps to a file, for subsequent access. You can start either RTMP Streaming or Browser Recording or both for any room

Pre-requisites

  1. Management token
  1. Single click meeting url to directly enter a room

APIs

Start Streaming/Recording

POST
https://prod-in2.100ms.live/api/v2/beam

This endpoint is used to start live streaming/recording

Headers

NameValueRequired
Content-type
application/jsonYes
Authorization
Bearer <management token>Yes

Body Parameters

NameTypeDescriptionRequired
operation
stringMust be "start"Yes
room_id
stringThe room id of the room which we need to start streaming/recordingYes
meeting_url
stringSingle click meeting url which we need to start streaming/recordingYes
rtmp_url
stringThe RTMP output url to which the meeting will be streamed.
Required when RTMP streaming needs to be started.
Supports rtmp:// & rtmps://
No
record
boolFlag to enable browser recordingNo

cURL

curl \ --location \ --request POST 'https://prod-in2.100ms.live/api/v2/beam' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <management_token>' \ --data-raw '{ "operation": "start", "room_id": <rooom_id>, "meeting_url": <meeting_url>, "rtmp_url": <rtmp_url>, "record": true }'

Stop Streaming/Recording

POST
https://prod-in2.100ms.live/api/v2/beam

This endpoint is used to stop live streaming/recording

Headers

NameValueRequired
Content-type
application/jsonYes
Authorization
Bearer <management token>Yes

Body Paramters

NameTypeDescriptionRequired
operation
stringMust be "stop"Yes
room_id
stringThe room id of the room for which we need to stop streaming/recordingYes

cURL

curl \ --location \ --request POST 'https://prod-in2.100ms.live/api/v2/beam' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <management_token>' \ --data-raw '{ "operation": "stop", "room_id": <rooom_id> }'

Postman Collection