Set up Android for streaming media

The Adobe Streaming Media for Edge Network extension (EdgeMedia) collects media session data in your Android app and sends it to the Edge Network. This page covers in-code configuration. To configure the SDK through a Tags mobile property instead, see Set up Android for streaming media with Tags.

Configure media for Android

Set the media configuration keys when you initialize the SDK:

val configuration = mapOf(
  "edgeMedia.channel" to "sample_channel",
  "edgeMedia.playerName" to "player_name",
  "edgeMedia.appVersion" to "app_version"
)
MobileCore.updateConfiguration(configuration)

Then create a tracker to manage a media session:

val tracker = Media.createTracker()

For configuration keys and the full tracker API, see the Media for Edge Network API reference.

Track media events

With the tracker created, track each media event using its tracker method. See the Android tab on each event and variable page for the exact calls.

Next step

Once your implementation is complete, you can Set up reporting for Edge implementations.

recommendation-more-help
media-analytics-help