Permalink
Browse files

Turned off capture for a bunch of events

  • Loading branch information...
1 parent 1d24f73 commit 0da019b869119b978a827806123795c341f1d47c @gavinlynch committed Nov 12, 2011
Showing with 7 additions and 7 deletions.
  1. +1 −1 src/js/me-shim.js
  2. +3 −3 src/js/mep-feature-googleanalytics.js
  3. +1 −1 src/js/mep-feature-volume.js
  4. +2 −2 src/js/mep-player.js
View
@@ -162,7 +162,7 @@ mejs.HtmlMediaElementShim = {
htmlMediaElement.src = playback.url;
htmlMediaElement.addEventListener('click', function() {
htmlMediaElement.play();
- }, true);
+ }, false);
}
// add methods to native HTMLMediaElement
@@ -27,17 +27,17 @@ $.extend(MediaElementPlayer.prototype, {
(player.options.googleAnalyticsTitle === '') ? player.currentSrc : player.options.googleAnalyticsTitle
]);
}
- }, true);
+ }, false);
media.addEventListener('pause', function() {
if (typeof _gaq != 'undefined') {
_gaq.push(['_trackEvent',
player.options.googleAnalyticsCategory,
player.options.googleAnalyticsEventPause,
(player.options.googleAnalyticsTitle === '') ? player.currentSrc : player.options.googleAnalyticsTitle
- =]);
+ ]);
}
- }, true);
+ }, false);
media.addEventListener('ended', function() {
if (typeof _gaq != 'undefined') {
@@ -140,7 +140,7 @@
mute.removeClass('mejs-unmute').addClass('mejs-mute');
}
}
- }, true);
+ }, false);
// set initial volume
//console.log('init volume',player.options.startVolume);
View
@@ -516,7 +516,7 @@
} else if (!t.options.alwaysShowControls && t.controlsEnabled) {
t.showControls();
}
- }, true);
+ }, false);
// resize on the first play
t.media.addEventListener('loadedmetadata', function(e) {
@@ -531,7 +531,7 @@
t.setPlayerSize(t.width, t.height);
t.setControlsSize();
}
- }, true);
+ }, false);
// webkit has trouble doing this without a delay

0 comments on commit 0da019b

Please sign in to comment.