Edit in GitHubLog an issue

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

  1. Add the Media for Edge Network extension and its dependencies to your project using the app's Gradle file.

Kotlin

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")

Groovy

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'
  1. Import the libraries in your application's main activity.

Java

Copied to your clipboard
import com.adobe.marketing.mobile.MobileCore;
import com.adobe.marketing.mobile.Edge;
import com.adobe.marketing.mobile.edge.identity.Identity;
import com.adobe.marketing.mobile.edge.media.Media;

Kotlin

Copied to your clipboard
import com.adobe.marketing.mobile.MobileCore
import com.adobe.marketing.mobile.Edge
import com.adobe.marketing.mobile.edge.identity.Identity
import com.adobe.marketing.mobile.edge.media.Media

Register Media with Mobile Core

To register Media with Mobile Core, import the Media library and register it:

Java

Copied to your clipboard
public class MainApp extends Application {
private final String ENVIRONMENT_FILE_ID = "YOUR_APP_ENVIRONMENT_ID";
@Override
public void onCreate() {
super.onCreate();
MobileCore.setApplication(this);
MobileCore.configureWithAppID(ENVIRONMENT_FILE_ID);
List<Class<? extends Extension>> extensions = Arrays.asList(
Edge.EXTENSION, Identity.EXTENSION, Media.EXTENSION);
MobileCore.registerExtensions(extensions, o -> {
Log.d(LOG_TAG, "AEP Mobile SDK is initialized");
});
}
}

Kotlin

Copied to your clipboard
class MyApp : Application() {
val ENVIRONMENT_FILE_ID = "YOUR_APP_ENVIRONMENT_ID"
override fun onCreate() {
super.onCreate()
MobileCore.setApplication(this)
MobileCore.configureWithAppID(ENVIRONMENT_FILE_ID)
val extensions = listOf(Edge.EXTENSION, Identity.EXTENSION, Media.EXTENSION)
MobileCore.registerExtensions(extensions) {
Log.d(LOG_TAG, "AEP Mobile SDK is initialized")
}
}
}

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
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.