Launch Extension
-
In Experience Platform Launch, click the Extensions tab for your
web property. -
On the Catalog tab, locate the Adobe Media Analytics for Audio and
Video extension, and click Install. -
In the extension settings page, configure the tracking parameters.
The Media extension will use the configured parameters for tracking.
- Add the Media Analytics library to your development project.
- Create a config object (
MediaHeartbeatConfig
). - Implement the delegate protocol, exposing the
getQoSObject()
andgetCurrentPlaybackTime()
functions. - Create a Media Heartbeat instance (
MediaHeartbeat
).
// Media Heartbeat initialization
var mediaConfig = new MediaHeartbeatConfig();
...
// Configuration settings
mediaConfig.trackingServer = Configuration.HEARTBEAT.TRACKING_SERVER;
...
// Implement Media Delegate (Quality of Service and Playhead)
var mediaDelegate = new MediaHeartbeatDelegate();
...
mediaDelegate.getQoSObject = function() {
return MediaHeartbeat.createQoSObject(<bitrate>, <startuptime>, <fps>, <droppedFrames>);
...
}
...
// Create your tracker
this.mediaHeartbeat = new MediaHeartbeat(mediaDelegate, mediaConfig, appMeasurement);