Application collectors
Akamai AMP Media Player
v2.22.0 • For the Javascript Collector
The Akamai AMP Media Player Extension is a configuration option for the Javascript Collector by Datazoom that makes the following additional data points automatically collectable in real time.
Integration Instructions
Datazoom provides plugins for data collection through our Beacon Services. Integrate the Akamai Player plugin into your web application with the following snippet: Insert this JS line into your HTML Replace the CONFIG_ID value with collector configuration ID. This inserts Datazoom's data collection SDK into the page. This is the standard option for customers who only need to collect data from the video player and are not concerned with joining player events with CDN logs or sending CMCD data to a CDN. To activate data collection for an Akamai player instance, create a Datazoom context which references the player instance with the following snippet: For example: This option is necessary if you are joining Player & CDN Log data together or want to send CMCD data to a CDN. In this option, Datazoom will handle instantiation of the player with the necessary hooks required to insert parameters like Content Session ID & Request ID in every media request the player makes. An Akamai player instance can be created with Datazoom data collection activated, using the following snippet: By creating a player instance through the For example: If the data collection must be stopped for any reason, for example after the destruction of the corresponding player instance, invoke the We have made it convenient to manage your Akamai AMP Collector integration by providing NPM (Node Package Manager) support. Please see installation details here.Akamai Player: Plugin Integration
<script src='https://platform.datazoom.io/beacon/v1/config?configuration_id=CONFIG_ID'></script>
Option 1: Activate Data Collection for an Existing Akamai Player Instance
datazoom_context = datazoom.createContext(player);
<html>
<head>
<script src="https://amp.akamaized.net/hosted/1.1/player.esi?apikey=YOUR_API_KEY&&format=script&version=9.0.21"></script>
<script src='https://platform.datazoom.io/beacon/v1/config?configuration_id=CONFIG_ID'></script>
</head>
<body>
<div class="vid-container">
<div id="akamai_player" style="width : 40% ;height : 290px">
</div>
</div>
<script>
var amp_player;
var datazoom_context;
var config = {
media: {
src: "https://video-dev.github.io/streams/x36xhzz/x36xhzz.m3u8",
type: "application/x-mpegURL",
poster: "https://upload.wikimedia.org/wikipedia/commons/thumb/7/70/Big.Buck.Bunny.-.Opening.Screen.png/320px-Big.Buck.Bunny.-.Opening.Screen.png",
title: "BigBuckBunny® Product Video",
autoplay: true,
startTime: 0
}
};
akamai.amp.AMP.create("akamai_player", config).then(
function(player) {
amp_player = player;
datazoom_context = datazoom.createContext(player);
}
);
</script>
</body>
</html>
Option 2: Have Datazoom Create an Akamai Player with Data Collection Activated
datazoom.createContextAndPlayer("akamai_player", config).then(
function(context) {
amp_player = context.getPlayer();
datazoom_context = context;
}
);
datazoom.createContextAndPlayer() method, it enables Datazoom to collect more player information to assist QoE monitoring and distributed tracing. <html>
<head>
<script src="https://amp.akamaized.net/hosted/1.1/player.esi?apikey=datazoom&&format=script&version=9.0.21"></script>
<script src='https://platform.datazoom.io/beacon/v1/config?configuration_id=CONFIG_ID'></script>
</head>
<body>
<div class="vid-container">
<div id="akamai_player" style="width : 40% ;height : 290px">
</div>
</div>
<script>
var amp_player;
var datazoom_context;
var config = {
media: {
src: "https://video-dev.github.io/streams/x36xhzz/x36xhzz.m3u8",
type: "application/x-mpegURL",
poster: "https://upload.wikimedia.org/wikipedia/commons/thumb/7/70/Big.Buck.Bunny.-.Opening.Screen.png/320px-Big.Buck.Bunny.-.Opening.Screen.png",
title: "BigBuckBunny® Product Video",
autoplay: true,
startTime: 0
}
};
datazoom.createContextAndPlayer("akamai_player", config).then(
function(context) {
amp_player = context.getPlayer();
datazoom_context = context;
}
);
</script>
</body>
</html>
Stop Data Collection
destroy() method of the Datazoom context object as in the following example:if (akamai_player) {
akamai_player.destroy();
akamai_player = null;
}
if (datazoom_context) {
datazoom_context.destroy();
datazoom_context = null;
}
NPM (Node Package Manager)
Ad Frameworks Extensions
If your Javascript application has a media player with an ad framework, Datazoom’s Javascript Collector with a Akamai AMP Media Player can be extended with the following ad framework extensions.
Supported Data Points
Events
Discrete occurrences driven by user interactions or system actions
-
Buffer End
-
Buffer Start
-
Cast End
-
Cast Start
-
Error
-
Exit Fullscreen
-
Fullscreen
-
Heartbeat
-
Media Loaded
-
Media Request
-
Milestone
-
Mute
-
Pause
-
Playback Complete
-
Playback Start
-
Player Ready
-
Playing
-
Qualified View
-
Rendition Change
-
Resume
-
Seek End
-
Seek Start
-
Stall End
-
Stall Start
-
Stop
-
Subtitle Change
-
Unmute
- Volume Change
Metadata
Player
Attributes
User
Fluxdata
Metrics measuring changing parameters over time
-
Bandwidth
-
Buffer Duration
-
Buffer Duration - Content
-
Buffer Length
-
Content Session Start Timestamp
-
Current Subtitles
-
Number of Content Plays
-
Number of Content Requests
-
Number of Errors
-
Number of Errors - Content
-
Pause Duration
-
Pause Duration - Content
-
Playback Duration
-
Playback Duration - Content
-
Playback Rate
-
Player State
-
Player Viewable
-
Player Viewable Percent
-
Playhead Position
-
Rendition Height
-
Rendition Name
-
Rendition Video Bitrate
-
Rendition Width
-
Stall Count
-
Stall Count - Content
-
Stall Duration
-
Stall Duration - Content
-
Time Since Content Request
-
Time Since Content Started
-
Time Since Last Buffer Start
-
Time Since Last Buffer Start - Content
-
Time Since Last Heartbeat
-
Time Since Last Milestone - Content
-
Time Since Last Pause
-
Time Since Last Rendition Change
-
Time Since Last Seek Start
-
Time Since Last Stall Start
-
Time Since Last Stall Start - Content
- Volume