Media output at the meeting layer passes through to the SRTC endpoints of the same name, so the capabilities, protocol limits, and error codes are exactly the same as SRTC’s; for details, see the SRTC Media output guide. This page covers only the meeting-layer differences and common usage.
One set of sources, two kinds of output
Video and audio each choose their own source, for both pulling and pushing:
video and audio can’t both be none. Video and audio can come from different users; for example, “presenter’s video + the meeting’s mixed audio” is video=user, video_uid=presenter, audio=mix.
Differences from SRTC
- Use
meeting_idto specify the meeting instead of SRTC’schannel video_uid/audio_uidtake the in-meeting user ID- Stopping a push requires both
meeting_idandpush_id;1074is returned if the push doesn’t belong to this meeting - Starting a push requires the meeting to be in progress (someone is in the meeting); when the meeting ends and everyone leaves, all of its pushes stop automatically
- Requesting a pull URL or starting a push returns
2101if the meeting formeeting_iddoesn’t exist
The composite video and mixed audio depend on a stream mixing task
When the composite video (video=mcu) or the meeting’s mixed audio is used, the meeting must have a stream mixing task in progress (task_type includes 2):
- Composite-mode meetings start a stream mixing task automatically on the server once people enter, so you can use it directly
- Regular meetings need you to start a recording task first with
task_typeincluding2(for example,2for stream mixing only,3for video recording + stream mixing). The layout is configured there; see the Cloud recording and stream mixing guide
1073 right away; a push can be created in advance, stays in waiting, and starts automatically once the stream mixing task starts.
Using only a single user’s video and audio doesn’t depend on a stream mixing task.
Key points of pulling and pushing
- HTTP-FLV video is H264 only, without transcoding (no video can be pulled if the publisher uses VP8; the composite video is always H264); audio is transcoded to AAC
- RTSP video is passed through as is (H264 / H265 / VP8); audio is transcoded to AAC by default, and
rtsp_audio=opuspasses it through as is; RTSP over TCP only - Pull URLs are signed and valid for 24 hours by default; sources are subscribed only when someone pulls, nothing is consumed when no one is pulling, and there is nothing to stop
- Pushes: a meeting can push multiple streams at once; starting again for the same push URL in the same meeting returns the existing
push_id(updated to the new sources if they changed) - Push status is
waiting/connecting/publishing/retrying/stopped; check it with List push tasks - Audio only (
video=none) has limits: HTTP-FLV doesn’t fill in silence when the audio drops out, and many live streaming platforms don’t accept audio-only pushes
Push failure alarms
When a push keeps failing (retrying for about 90 seconds), you are notified through themcu_alarm callback:
task_type 0 means it’s a push alarm, and task_id is then the push_id—not a recording task, so don’t pass it to mcu/* endpoints.
An alarm doesn’t mean the push has stopped; rely on status in the push list.