Ant Media · Schema
Broadcast
An Ant Media Server broadcast/stream representing a live or recorded video stream with its configuration and current status.
BroadcastingLive StreamingMediaStreamingVideoWebRTC
Properties
| Name | Type | Description |
|---|---|---|
| streamId | string | Unique identifier for the stream. |
| name | string | Human-readable name for the broadcast. |
| status | string | Current broadcast status. |
| type | string | Type of broadcast. |
| publishType | string | Protocol used to publish the stream. |
| streamUrl | string | URL for RTSP, SRT, or IP camera source streams. |
| hlsViewerCount | integer | Current number of HLS viewers. |
| webRTCViewerCount | integer | Current number of WebRTC viewers. |
| rtmpViewerCount | integer | Current number of RTMP viewers. |
| mp4Enabled | integer | Whether MP4 recording is enabled (1 = enabled, 0 = disabled). |
| webMEnabled | integer | Whether WebM recording is enabled. |
| duration | integer | Duration of the stream in milliseconds. |
| startTime | integer | Unix epoch milliseconds when broadcasting started. |
| absoluteStartTimeMs | integer | Absolute start time in Unix epoch milliseconds. |
| plannedStartDate | integer | Planned start time in Unix epoch milliseconds for scheduled broadcasts. |
| description | string | Description of the broadcast. |
| token | string | One-time publish token for secured stream publishing. |
| is360 | boolean | Whether this is a 360-degree stream. |
| latitude | string | GPS latitude for geo-tagged streams. |
| longitude | string | GPS longitude for geo-tagged streams. |
| altitude | string | GPS altitude for geo-tagged streams. |