Set up iOS for streaming media
The Adobe Streaming Media for Edge Network extension (AEPEdgeMedia) collects media session data in your iOS or tvOS 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 iOS for streaming media with Tags.
-
Prerequisites:
- Complete the Edge implementation overview (schema, dataset, datastream with Media Analytics enabled).
- Add the
AEPCore,AEPEdge,AEPEdgeIdentity, andAEPEdgeMediaextensions to your app. See Adobe Streaming Media for Edge Network for installation and registration.
Configure media for iOS
Set the media configuration keys when you initialize the SDK:
let configuration = [
"edgeMedia.channel": "sample_channel",
"edgeMedia.playerName": "player_name",
"edgeMedia.appVersion": "app_version"
]
MobileCore.updateConfiguration(configuration)
Then create a tracker to manage a media session:
let 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 iOS 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