Application collectors
IVS Media Player
v2.17.0 • For the Javascript Collector
The IVS 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 IVS 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. To activate data collection for an IVS player 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 IVS Collector integration by providing NPM (Node Package Manager) support. Please see installation details here. IVS Player SDK Manual: https://ivideosmart.zendesk.com/hc/en-us/articles/360041163474-User-Manual-for-iVideoSmart-IVS-Player-SDK-for-HTML5 Plugin Integration
<script src='https://platform.datazoom.io/beacon/v1/config?configuration_id=CONFIG_ID'></script>
Activate Data Collection for an IVS Player
datazoom_context = datazoom.createContext(player);
<html>
<head>
<script src="https://player.ivideosmart.com/ivsplayer/v4/dist/js/loader.js"></script>
<script src='https://platform.datazoom.io/beacon/v1/config?configuration_id=CONFIG_ID'></script>
</head>
<body>
<div id="ivsplayer01-container">
<ivs-player
id="ivsplayer01"
data-ivs-key="<customer api key>"
data-ivs-spid="<service provider id>"
data-ivs-vid="<video id>">
</ivs-player>
</div>
<script>
var ivs_player;
var datazoom_context;
document.addEventListener('ivs.player.rendered', function (event) {
ivs_player = event.detail.instance;
datazoom_context = datazoom.createContext(ivs_player);
});
</script>
</body>
</html>
Stop Data Collection
destroy() method of the Datazoom context object as in the following example:if (datazoom_context) {
datazoom_context.destroy();
datazoom_context = null;
}
NPM (Node Package Manager)
References
Ad Frameworks Extensions
If your Javascript application has a media player with an ad framework, Datazoom’s Javascript Collector with a IVS Media Player can be extended with the following ad framework extensions.
Supported Data Points
Events
Discrete occurrences driven by user interactions or system actions
Metadata
Player
Attributes
User
Fluxdata
Metrics measuring changing parameters over time
-
Bandwidth
-
Buffer Duration
-
Buffer Duration - Content
-
Content Session Start Timestamp
-
Number of Content Plays
-
Number of Content Requests
-
Number of Errors
-
Number of Errors - Content
-
Playback Duration
-
Playback Duration - Content
-
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