This page covers data collection for the Media downloaded flag variable. See Media downloaded for the corresponding reporting dimension.
The media downloaded flag indicates that a session is playback of previously downloaded offline content rather than a live stream from the internet. Set it when initializing the tracker (Mobile SDK) or include it in the sessionStart payload (Edge / Media Collection API). Use this flag to separate offline playback from streamed sessions in reporting.
a.media.downloadedc_contextdata.a.media.downloadedRecommended implementation types
Set isDownloaded to true inside xdm.mediaCollection.sessionDetails when calling sendEvent:
| code language-javascript |
|---|
|
Set the downloaded-content flag on the tracker config when creating the tracker, using MediaConstants.TrackerConfig.DOWNLOADED_CONTENT.
| code language-swift |
|---|
|
Set the downloaded-content flag on the tracker config when creating the tracker, using MediaConstants.TrackerConfig.DOWNLOADED_CONTENT.
| code language-kotlin |
|---|
|
Set isDownloaded to true inside xdm.mediaCollection.sessionDetails when calling createMediaSession:
| code language-brightscript |
|---|
|
Call the downloaded endpoint after the device returns online, batching the full offline session inside mediaDownloadedEvents. Adobe automatically sets isDownloaded to true and assigns a session ID; do not include either in the payload.
| code language-json |
|---|
|
Legacy implementation types (Analytics-only)
Set downloadedContent on ADB.MediaConfig before creating the tracker:
| code language-javascript |
|---|
|
Set MediaDownloaded on the media info object before calling trackSessionStart:
| code language-javascript |
|---|
|
Include media.downloaded in the params object of your sessionStart POST request:
| code language-json |
|---|
|
See the Media Collection API sessions reference for the full request structure.