The Adobe Streaming Media for Edge Network extension has specific configuration requirements for including the Media Collection Details field group in the XDM schema and enabling Media Analytics in a datastream configuration. For more details, please refer to this guide to configure and set up Adobe Streaming Media for Edge Network.
The Adobe Streaming Media for Edge Network mobile extension has the following dependencies, which must be installed prior to installing the extension:
- In the Data Collection Tags, select the Extensions tab in your mobile property.
- On the Catalog tab, locate the Adobe Streaming Media for Edge Network extension, and select Install.
- Type the extension settings for Channel, Player Name, and Application Version.
- Select Save.
- Follow the publishing process to update your SDK configuration.
Optionally, the Media for Edge Network configuration may be set or changed programmatically.
| Name | Key | Value | Required |
|---|---|---|---|
| Channel | "edgeMedia.channel" | String | Yes |
| Player Name | "edgeMedia.playerName" | String | Yes |
| Application Version | "edgeMedia.appVersion" | String | No |
```java
Map<String, Object> mediaConfiguration = new HashMap<>();
mediaConfiguration.put("edgeMedia.channel", "<YOUR_CHANNEL_NAME>");
mediaConfiguration.put("edgeMedia.playerName", "<YOUR_PLAYER_NAME>");
mediaConfiguration.put("edgeMedia.appVersion", "<YOUR_APP_VERSION>");
MobileCore.updateConfiguration(mediaConfiguration);
```
```koltin
val mediaConfiguration = mapOf<String, Any>(
"edgeMedia.channel" to "<YOUR_CHANNEL_NAME>",
"edgeMedia.playerName" to "<YOUR_PLAYER_NAME>",
"edgeMedia.appVersion" to "<YOUR_APP_VERSION>"
)
MobileCore.updateConfiguration(mediaConfiguration)
```
-
Installation via Maven & Gradle is the easiest and recommended way to get the AEP SDK into your Android app. Add the Mobile Core, Edge, EdgeIdentity, and EdgeMedia extensions to your project using the app's Gradle file:
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")
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'
Warning
Using dynamic dependency versions is not recommended for production apps. Refer to this page for managing Gradle dependencies.
-
Import the libraries:
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;
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
-
Import the Media library into your project and register it with
MobileCorepublic 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( Media.EXTENSION, Edge.EXTENSION, Identity.EXTENSION); MobileCore.registerExtensions(extensions, o -> { Log.d(LOG_TAG, "AEP Mobile SDK is initialized"); }); } }
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(Media.EXTENSION, Edge.EXTENSION, Identity.EXTENSION) MobileCore.registerExtensions(extensions) { Log.d(LOG_TAG, "AEP Mobile SDK is initialized") } } }
Get familiar with the various APIs offered by the AEP SDK by checking out the Media API reference.