A single call may have multiple concurrent streams. Each stream is identified by a unique
stream_id and can be stopped independently.Attributes
| Field | Type | Description |
|---|---|---|
stream_id | string | Unique identifier for the stream. Used in API operations to identify specific streams. |
call_uuid | string | The UUID of the call this stream is attached to. |
service_url | string | WebSocket URL (wss:// or ws://) to which Vobiz forwards the forked audio. |
audio_track | string | Which audio track is being streamed. One of “inbound”, “outbound”, “both”. |
bidirectional | boolean | Whether the WebSocket is also allowed to send audio back into the call. |
content_type | string | Audio codec and sample rate negotiated for the stream. One of “audio/x-l16;rate=8000”, “audio/x-l16;rate=16000”, “audio/x-l16;rate=24000”, “audio/x-mulaw;rate=8000”. This is echoed to your WebSocket server in the start.mediaFormat event. |
sampling_rate | integer | Audio sample rate in Hz, parsed from content_type. One of 8000, 16000, 24000 (L16 only; µ-law is fixed at 8000). |
stream_timeout | integer | Maximum stream duration in seconds. The stream is automatically stopped when this limit is reached. |
status_callback_url | string | URL invoked via HTTP POST when the stream status changes (connected, stopped, timeout, failed). |
status_callback_method | string | HTTP method used to invoke status_callback_url. One of “GET”, “POST”. Default: “POST”. |
status | string | Current status of the stream. One of “in-progress”, “completed”, “failed”. |
start_time | string | Timestamp when the stream started (ISO 8601 with timezone). |
end_time | string | Timestamp when the stream ended. Null while the stream is still active. |
resource_uri | string | Relative URI of this Stream resource. |
Example
Stream Object