Adobe Streaming Media for Edge Network

The Media for Edge Network extension enables tracking user's engagement and consumption of audio and video content on mobile devices.

Before starting

Configure and Setup Adobe Streaming Media for Edge Network

  1. Define a report suite
  2. Set up the schema in Adobe Experience Platform
  3. Create a dataset in Adobe Experience Platform
  4. Configure a datastream in Adobe Experience Platform

Follow the full guide for setting up Adobe Streaming Media for Edge Network with Experience Platform Edge before configuring and implementing the SDK.

Configure and Install Dependencies

Media for Edge Network requires Edge and Edge Identity extensions. Make sure to configure the Edge extension in Data Collection UI and configure the Edge Identity extension in Data Collection UI before proceeding.

Configure Media for Edge Network extension in the Data Collection Tags

  1. In the Data Collection Tags, select the Extensions tab in your mobile property.
  2. On the Catalog tab, locate the Adobe Streaming Media for Edge Network extension, and select Install.
  3. Type the extension settings. For more information, see Configure Media for Edge Network extension.
  4. Select Save.
  5. Follow the publishing process to update your SDK configuration.

Configure the Media for Edge Network extension

To configure the Media for Edge Network extension, complete the following steps:

Channel

Type the channel name property.

Player name

Type the name of the media player in use (for example, AVPlayer, Native Player, or Custom Player).

Application version

Type the version of the media player application/SDK.

Add Media for Edge Network to your app

Include Media for Edge Network extension as an app dependency

Add MobileCore, Edge, EdgeIdentity and EdgeMedia extensions as dependencies to your project.

Add the required dependencies to your project by including them in the app's Gradle file.

Copied to your clipboard
implementation(platform("com.adobe.marketing.mobile:sdk-bom:3.+"))
implementation("com.adobe.marketing.mobile:core")
implementation("com.adobe.marketing.mobile:edge")
implementation("com.adobe.marketing.mobile:edgeidentity")
implementation("com.adobe.marketing.mobile:edgemedia")

Initialize Adobe Experience Platform SDK with Media for Edge Network Extension

Next, initialize the SDK by registering all the solution extensions that have been added as dependencies to your project with Mobile Core. For detailed instructions, refer to the initialization section of the getting started page.

Using the MobileCore.initialize API to initialize the Adobe Experience Platform Mobile SDK simplifies the process by automatically registering solution extensions and enabling lifecycle tracking.

Copied to your clipboard
import com.adobe.marketing.mobile.LoggingMode
import com.adobe.marketing.mobile.MobileCore
...
import android.app.Application
...
class MainApp : Application() {
override fun onCreate() {
super.onCreate()
MobileCore.setLogLevel(LoggingMode.DEBUG)
MobileCore.initialize(this, "ENVIRONMENT_ID")
}
}

Configuration keys

To update your SDK configuration programmatically, use the following information to change your Media configuration values. For more information, see Configuration API reference.

KeyRequiredDescriptionData Type
edgeMedia.channel
Yes
The Channel name. For more information, see Channel.
String
edgeMedia.playerName
Yes
The media player name, i.e., "AVPlayer", "HTML5 Player", "My Custom Player". For more information, see Player Name.
String
edgeMedia.appVersion
No
Version of the media player app/SDK. For more information, see Application Version.
String