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
- Management token
- 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
Name | Value | Required |
---|---|---|
Content-type | application/json | Yes |
Authorization | Bearer <management token> | Yes |
Body Parameters
Name | Type | Description | Required |
---|---|---|---|
operation | string | Must be "start" | Yes |
room_id | string | The room id of the room which we need to start streaming/recording | Yes |
meeting_url | string | Single click meeting url which we need to start streaming/recording | Yes |
rtmp_url | string | The RTMP output url to which the meeting will be streamed. Required when RTMP streaming needs to be started. Supports rtmp:// & rtmps:// | No |
record | bool | Flag to enable browser recording | No |
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
Name | Value | Required |
---|---|---|
Content-type | application/json | Yes |
Authorization | Bearer <management token> | Yes |
Body Paramters
Name | Type | Description | Required |
---|---|---|---|
operation | string | Must be "stop" | Yes |
room_id | string | The room id of the room for which we need to stop streaming/recording | Yes |
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> }'