This extension requires the Adobe Analytics for Media add-on SKU. To learn more, contact your Adobe Customer Success Manager.
In Experience Platform Launch, click the Extensions tab.
On the Catalog tab, locate the Adobe Media Analytics for Audio and Video extension, and click Install.
Type the extension settings. For more information, see Configure Media Analytics Extension.
Click Save.
Follow the publishing process to update your SDK configuration.
This server is different from your Analytics tracking server.
Type the name of the tracking server to which all media tracking data should be sent.
Contact your Adobe account representative to receive this information.
Type the name of the media collection API server to which the downloaded media tracking data should be sent.
Type the channel name property.
Type the name of the online platform through which content is distributed.
Type the name of the media player in use (for example, AVPlayer, Native Player, or Custom Player).
Type the version of the media player application/SDK.
Disable this option for your production application.
Enables or disables Media SDK logs.
This extension requires the Adobe Analytics extension. You must add the Analytics extension to your Launch property and make sure the extension is correctly configured.
Add the Media extension and its dependencies to your project using the app's Gradle file.
implementation 'com.adobe.marketing.mobile:analytics:1.+'implementation 'com.adobe.marketing.mobile:media:1.+'implementation 'com.adobe.marketing.mobile:sdk-core:1.+'
Import the Media extension in your application's main activity.
import com.adobe.marketing.mobile.*;
To add the Media library and its dependencies to your project, add the following pods to your Podfile
:
pod 'ACPMedia', '~> 1.0'pod 'ACPAnalytics', '~> 2.0'pod 'ACPCore', '~> 2.0'
You can also manually include the libraries in Github.
In Xcode project, import Media extension:
Objective-C
#import <ACPMedia.h>
Swift
import ACPMedia
To register media with Mobile Core, call the setApplication()
method in onCreate()
and call set up methods, as shown in this sample:
import com.adobe.marketing.mobile.*;​public class MobileApp extends Application {​@Overridepublic void onCreate() {super.onCreate();MobileCore.setApplication(this);​try {Media.registerExtension();Analytics.registerExtension();Identity.registerExtension();MobileCore.start(new AdobeCallback () {@Overridepublic void call(Object o) {MobileCore.configureWithAppID("your-launch-app-id");}});} catch (InvalidInitException e) {​}}}
In your app's application:didFinishLaunchingWithOptions
, register Media with Mobile Core:
#import <ACPCore.h>#import <ACPAnalytics.h>#import <ACPMedia.h>#import <ACPIdentity.h>​- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {[ACPCore setLogLevel:ACPMobileLogLevelDebug];[ACPCore configureWithAppId:@"your-launch-app-id"];​[ACPMedia registerExtension];[ACPAnalytics registerExtension];[ACPIdentity registerExtension];​[ACPCore start:^{​}];​return YES;}
import ACPCoreimport ACPAnalyticsimport ACPMediaimport ACPIdentityimport ACPLifecycle​func application(_ application: UIApplication,didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {ACPCore.setLogLevel(.debug)ACPCore.configure(withAppId: "your-launch-app-id")​ACPMedia.registerExtension()ACPAnalytics.registerExtension()ACPIdentity.registerExtension()​ACPCore.start {​}​return true;}
To update your SDK configuration programmatically, use the following information to change your Media configuration values. For more information, see Configuration API reference.
Key | Required | Description |
| Yes | For more information, see Tracking Server. |
| No | For more information, see Collection Server. |
| No | For more information, see Channel. |
| No | For more information, see Online Video Provider. |
| No | For more information, see Player Name. |
| No | For more information, see Application Version. |
| No | For more information, see Debug Logging. |