Legs
Change an audio stream's routing role
Changed onUpdates the stream's role in place and, when the stream is mixed into a room, recomputes that room's matrix-derived allow-sets atomically (single mixer-mutex acquisition), so no audio bleeds through mid-change. Emits leg.stream_role_changed and room.routing_changed with reason: leg_stream_role_changed.
Only the role is mutable here. The SDP-level attributes — direction, lang, content, label — are fixed when the stream is negotiated; change them by removing the stream and adding a new one.
patch/legs/{id}/streams/{streamId}
Request
- Base URLhttp://localhost:8080/v1
- URLhttp://localhost:8080/v1/legs/{id}/streams/{streamId}
- Authnone declared
Request body
Response
Updated stream
Changes
- info
endpoint added
- info