Bitrate change
The bitrate change event signals that the player negotiated a new playback bitrate. Send it whenever the bitrate changes during playback. Include the new bitrate value in the QoE data so the backend can compute Average bitrate and the per-bitrate-bucket dimension.
- Prerequisites: Session start
- Associated metric: Bitrate changes
Recommended implementation types
Call sendEvent with eventType: "media.bitrateChange" and the new bitrate in qoeDataDetails:
| code language-javascript |
|---|
|
Create a QoE object with the new bitrate and update the tracker before the bitrate change event fires.
| code language-swift |
|---|
|
Create a QoE object with the new bitrate and update the tracker before the bitrate change event fires.
| code language-kotlin |
|---|
|
Call sendMediaEvent with eventType: "media.bitrateChange" and the new bitrate in qoeDataDetails:
| code language-brightscript |
|---|
|
Call the bitrateChange endpoint with the new bitrate in qoeDataDetails:
| code language-sh |
|---|
|
Legacy implementation types (Analytics-only)
Create a QoE object with the new bitrate and update the tracker:
| code language-javascript |
|---|
|
Update the QoS object returned by the getQoSObject delegate, then track the event:
| code language-javascript |
|---|
|
Send a bitrateChange POST to the events endpoint with the new bitrate in qoeData:
| code language-json |
|---|
|