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.
-
Prerequisites:
- Complete the Edge implementation overview (schema, dataset, datastream with Media Analytics enabled).
- Add the
Core,Edge,EdgeIdentity, andEdgeMediaextensions to your app. See Adobe Streaming Media for Edge Network for installation and registration.
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