Real-time Video: RTMP
Currently RTMP only supports a single, mixed video/audio. We send video at 720p, 30 FPS.
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:rtmpconfig.url: Your publicly exposed ngrok tunnel URLconfig.events: An array including thevideo_mixed_flv.dataevent
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-west-2.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",
"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 12 days ago