Application collectors
HTML5 Media Player
v2.31.0 • For the Javascript Collector
The HTML5 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. Insert this JS line into your HTML Replace the This inserts Datazoom's data collection SDK into the page. To activate data collection for HTML5 instance, create a Datazoom context which references the player instance with the following snippet: For example: If the data collection must be stopped for any reason, invoke the We have made it convenient to manage your HTML5 Collector integration by providing NPM (Node Package Manager) support. Please see installation details here.Plugin Integration
1<script src='https://platform.datazoom.io/beacon/v1/config?configuration_id=CONFIG_ID'></script>CONFIG_ID value with the collector configuration ID.Activate Data Collection for an HTML5 Player
1datazoom_context = datazoom.createContext(html5_player);1<!DOCTYPE html>2<html lang="en">34<head>5 <!-- THE DATAZOOM BEACON SCRIPT -->6 <script src='https://platform.datazoom.io/beacon/v1/config?configuration_id=CONFIG_ID'></script>7</head>8<body>9<div style="position:relative;width:640px;height:360px">10 <video id="video" style="position:absolute;top:0;left:0;width:100%;height:100%" controls></video>11</div>12<script> 13 var html5_player;14 html5_player = document.getElementById("video");15 html5_player.src = "https://storage.googleapis.com/interactive-media-ads/media/android.mp4";16 var datazoom_context = datazoom.createContext(html5_player); 17</script>18</body>1920</html>Stop Data Collection
destroy() method of the Datazoom context object as in the following example:1if (datazoom_context) {2 datazoom_context.destroy();3 datazoom_context = null;4}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 HTML5 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
-
Cast Transfer
-
Error
-
Exit Fullscreen
-
Fullscreen
-
Heartbeat
-
Media Loaded
-
Media Request
-
Milestone
-
Mute
-
Pause
-
Playback Complete
-
Playback Start
-
Player Ready
-
Playing
-
Qualified View
-
Rendition Change
-
Resize
-
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 (Content Session)
-
Buffer Length
-
Buffer Start Recency (Content Session)
-
Content Buffer Duration (Content Session)
-
Content Buffer Start Recency (Content Session)
-
Content Error Count (App Session)
-
Content Media Request Count (App Session)
-
Content Media Request Recency (Content Session)
-
Content Milestone Recency (Content Session)
-
Content Pause Duration (Content Session)
-
Content Playback Duration (Content Session)
-
Content Playback Start Count (App Session)
-
Content Playback Start Recency (Content Session)
-
Content Session Start Timestamp
-
Content Stall Count (Content Session)
-
Content Stall Duration (Content Session)
-
Content Stall Start Recency (Content Session)
-
Error Count (App Session)
-
Heartbeat Recency (Content Session)
-
Pause Duration (Content Session)
-
Pause Recency (Content Session)
-
Playback Duration (Content Session)
-
Playback Rate
-
Player State
-
Player Viewable
-
Player Viewable Percent
-
Playhead Position
-
Rendition Change Recency (Content Session)
-
Rendition Height
-
Rendition Name
-
Rendition Width
-
Seek Start Recency (Content Session)
-
Stall Count (Content Session)
-
Stall Duration (Content Session)
-
Stall Start Recency (Content Session)
-
Subtitle Track
- Volume