This page covers data collection for the Bitrate variable. See Average bitrate (dimension) and Average bitrate (metric) for the corresponding reporting variables.
The bitrate variable is the current playback bitrate, in kilobits per second. Set it on the QoE object whenever the player negotiates a bitrate, and update the QoE object when the bitrate changes. The backend uses bitrate values to compute Average bitrate, the per-bitrate-bucket dimension, and the Bitrate changes metric.
a.media.qoe.bitrateAverageBucketc_contextdata.a.media.qoe.bitrateAverageBucketRecommended implementation types
Set bitrate inside xdm.mediaCollection.qoeDataDetails on media.bitrateChange (or any quality-related event) when calling sendEvent:
| code language-javascript |
|---|
|
Pass the bitrate as the first argument to createQoEObject. Update the QoE object on the tracker before any quality event fires.
| code language-swift |
|---|
|
Pass the bitrate as the first argument to createQoEObject. Update the QoE object on the tracker before any quality event fires.
| code language-kotlin |
|---|
|
Set bitrate inside xdm.mediaCollection.qoeDataDetails when calling sendMediaEvent for quality events such as media.bitrateChange:
| code language-brightscript |
|---|
|
Call the bitrateChange endpoint with bitrate inside xdm.mediaCollection.qoeDataDetails:
| code language-json |
|---|
|
Legacy implementation types (Analytics-only)
Pass the bitrate as the first argument to ADB.Media.createQoEObject and update the tracker:
| code language-javascript |
|---|
|
Pass the bitrate in kbps as the first argument to ADBMobile.media.createQoSObject and update the tracker:
| code language-javascript |
|---|
|
Pass the bitrate in kbps as the first argument to adb_media_init_qosinfo and update the tracker with mediaUpdateQoS:
| code language-brightscript |
|---|
|
Include media.qoe.bitrate in the params object of your bitrateChange POST request:
| code language-json |
|---|
|
See the Media Collection API events reference for the full request structure.