pub struct Object {
pub encoded_bitrate: Option<i64>,
pub object_duration: Option<Duration>,
pub object_type: Option<ObjectType>,
pub top_bitrate: Option<i64>,
}Expand description
An CMCD-Object Header contains
keys whose values vary with the object being requested.
Fields§
§encoded_bitrate: Option<i64>Key: br
Header: CMCD-Object
Type & Unit: Integer kbps
The encoded bitrate of the audio or video object being requested. This may not be known precisely by the player; however, it MAY be estimated based upon playlist/manifest declarations. If the playlist declares both peak and average bitrate values, the peak value should be transmitted.
object_duration: Option<Duration>Key: d
Header: CMCD-Object
Type & Unit: Integer milliseconds
The playback duration in milliseconds of the object being requested. If a partial segment is being requested, then this value MUST indicate the playback duration of that part and not that of its parent segment. This value can be an approximation of the estimated duration if the explicit value is not known.
object_type: Option<ObjectType>Key: ot
Header: CMCD-Object
Type & Unit: Token
The media type of the current object being requested:
m = text file, such as a manifest or playlist
a = audio only
v = video only
av = muxed audio and video
i = init segment
c = caption or subtitle
tt = ISOBMFF timed text track
k = cryptographic key, license or certificate.
o = other
If the object type being requested is unknown, then this key MUST NOT be used.
top_bitrate: Option<i64>Key: tb
Header: CMCD-Object
Type & Unit: Integer Kbps
The highest bitrate rendition in the manifest or playlist that the client is allowed to play, given current codec, licensing and sizing constraints.