This page covers data collection for the Stream format variable. See Stream format for the corresponding reporting dimension.
The stream format variable identifies the quality tier of the stream (typically "HD" or "SD", but any string is accepted). Set it when you want to break out engagement, completion, or quality by delivery quality tier.
a.media.formatc_contextdata.a.media.formatRecommended implementation types
Set streamFormat inside xdm.mediaCollection.sessionDetails when calling sendEvent:
| code language-javascript |
|---|
|
Pass the stream format as a metadata key in the HashMap argument to trackSessionStart. Use MediaConstants.VideoMetadataKeys.STREAM_FORMAT.
| code language-swift |
|---|
|
Pass the stream format as a metadata key in the HashMap argument to trackSessionStart. Use MediaConstants.VideoMetadataKeys.STREAM_FORMAT.
| code language-kotlin |
|---|
|
Use createMediaSession to set streamFormat inside sessionDetails:
| code language-brightscript |
|---|
|
Call the sessionStart endpoint with streamFormat inside xdm.mediaCollection.sessionDetails:
| code language-json |
|---|
|
Legacy implementation types (Analytics-only)
Pass the stream format in the contextData object using ADB.Media.VideoMetadataKeys.StreamFormat:
| code language-javascript |
|---|
|
Use ADBMobile.media.VideoMetadataKeys.STREAM_FORMAT to set the stream format in the StandardMediaMetadata property of the media object before calling trackSessionStart:
| code language-javascript |
|---|
|
Include media.streamFormat in the params object of your sessionStart POST request:
| code language-json |
|---|
|
See the Media Collection API sessions reference for the full request structure.