Skip to main content
The StreamInfo object stores detailed technical information about a stream’s audio and video characteristics. It’s primarily used in cluster deployments to share stream metadata across nodes.

Model Structure

string
The unique identifier of the stream
string
The hostname or IP address of the server hosting this stream
string
The node group this stream belongs to in a cluster environment
boolean
Indicates whether this is a global host in the cluster
integer
The port number of the origin server for this stream

Video Properties

boolean
Indicates whether video track is enabled for this stream
integer
The height of the video in pixels
integer
The width of the video in pixels
integer
The video bitrate in bits per second
integer
The video rational timebase value used for timestamp calculations
string
The video codec being used (e.g., VP8, H264, VP9)

Audio Properties

boolean
Indicates whether audio track is enabled for this stream
integer
The audio bitrate in bits per second
integer
The audio rational timebase value used for timestamp calculations

Data Channel

boolean
Indicates whether WebRTC data channel is enabled for this stream

Use Cases

The StreamInfo model is primarily used for:

Cluster Coordination

In cluster deployments, StreamInfo helps edge nodes discover which origin node is handling a specific stream:

Stream Capability Detection

Applications can check StreamInfo to determine what media types are available:

Adaptive Bitrate Planning

StreamInfo provides the current stream characteristics for ABR ladder planning:

Example JSON

Video Codec Values

The videoCodec field can contain:
  • H264 - H.264/AVC codec
  • VP8 - VP8 codec (WebRTC default)
  • VP9 - VP9 codec
  • H265 - H.265/HEVC codec (if supported)
  • AV1 - AV1 codec (if supported)

Timebase Explanation

The videoRTimebase and audioRTimebase fields represent the rational timebase used for timestamp calculations:
  • Video Timebase: Typically 90000 for most video codecs (90 kHz)
  • Audio Timebase: Typically equals the audio sample rate (e.g., 48000 for 48 kHz audio)
These values are used internally for accurate timestamp synchronization.

Difference from Broadcast Model

While the Broadcast model contains comprehensive stream configuration and statistics, StreamInfo focuses specifically on:
  • Technical media properties (codecs, bitrates, resolutions)
  • Cluster routing information (host, node group, origin)
  • Real-time capabilities (enabled tracks)
Use Broadcast for stream management and configuration, and StreamInfo for cluster coordination and media capability detection.