-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathREADME.html
33 lines (31 loc) · 1.65 KB
/
README.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<h1>videojs BrightCove tracking</h1>
<p>BrightCove plugin for video.js</p>
<h2>Getting Started</h2>
<p>Download <a href="http://www.videojs.com/">videojs</a> and <a href="https://github.com/space87/videojs-BrightCove-tracking">videojs.brightcove tracking</a></p>
<p>On your page include the plugin file.</p>
<pre><code class="lang-html"><script src="dist/videoTracking.min.js"></script></code></pre>
<p>-Please note that the videojs.js file needs to be loaded prior to this plugin</p>
<p>-Also this can only be used if you call videojs dynamically</p>
<p>you Call the plugin like this</p>
<pre><code class="lang-javascript">
videojs('video', {plugins:{aoBcTracking:{accountID:'Your brightcove accound id',video:{name:'name of your video',id:'id of your brightcove video'}}}}, function() {
//declare your source
this.src('example.mp4');
});</code></pre>
<p>-There is no need to call .play() as the plugin will call that to allow tracking of events.</p>
<h2>Options</h2>
<p>You need provide to provide it with you BrightCove Id in the accountID value.</p>
<p>Also to allow BrightCove to see what video it is tracking you need to put in the video name and id too.</p>
<h4>events that are tracked</h4>
<p>currently this plugin will track:</p>
<p>"player_load",
"video_impression",
"video_view",
"view_engagement" which reports every 10 seconds allowing the collection of engagement data</p>
<h2>TODO</h2>
<ul>
<li>[ ] Allow custom user tracking to the videos</li>
<li>[ ] Track the geoloaction data of the viewer and report it</li>
</ul>
<h4>#</h4>
<p>Implemneted at ao.com</p>