Real-time Video: RTMP
Currently RTMP only supports a single, mixed video/audio.
Configure the bot
Now it's time to send a bot to a meeting while configuring a real-time websocket endpoint.
To do this, call the Create Bot endpoint while providing a real-time endpoint object where:
type
:rtmp
config.url
: Your publicly exposed ngrok tunnel URLconfig.events
: An array including thevideo_mixed_flv.data
event
Include video_mixed_flv
media object in recording_config
. Don't forget to set meeting_url
to your newly-created Google Meet call.
Example curl:
curl --request POST \
--url https://us-east-1.recall.ai/api/v1/bot/ \
--header "Authorization: $RECALLAI_API_KEY" \
--header "accept: application/json" \
--header "content-type: application/json" \
--data '
{
"meeting_url": "https://meet.google.com/sde-zixx-iry",
"recording_config": {
"video_mixed_flv": {},
"realtime_endpoints": [
{
"type": "rtmp",
"config": {
"url": "rtmps://your-app.com/api/...",
"events": ["video_mixed_flv.data"]
}
}
]
}
}
'
Your RTMP destination URL should have the following format:
rtmp://hostname[:port]/{APPLICATION-NAME}/{STREAM-KEY}
Updated 6 days ago