Author: andre
Date: 2010-06-15 12:14:15 +0200 (Tue, 15 Jun 2010)
New Revision: 42574
Modified:
openimages/trunk/src/main/webapp/oiplayer/js/jquery.oiplayer.js
Log:
added an event trigger to be able to track number of times playing has started,
including an id (with an extra attribute class) on media tag
Modified: openimages/trunk/src/main/webapp/oiplayer/js/jquery.oiplayer.js
===================================================================
--- openimages/trunk/src/main/webapp/oiplayer/js/jquery.oiplayer.js
2010-06-15 10:00:41 UTC (rev 42573)
+++ openimages/trunk/src/main/webapp/oiplayer/js/jquery.oiplayer.js
2010-06-15 10:14:15 UTC (rev 42574)
@@ -182,7 +182,7 @@
}
player.play();
-
+ $(player.div).trigger("oiplayerstart", [player]);
if (player.config.controls) {
var timer = $(player.ctrls).find('li.position');
if ($(player.ctrls).find('li.pause').length == 0) {
@@ -310,6 +310,9 @@
if (eas.start != null) {
player.start = eas.start;
}
+ if (eas.id != null) {
+ player.id = eas.id;
+ }
player.info = selectedPlayer.type + ":" + selectedPlayer.url;
player.init(el, selectedPlayer.url, config);
return player;
@@ -385,7 +388,7 @@
}
/*
- * Returns url it expects to be able to play with html5 video- or audiotag
based on mimetype.
+ * Returns (first) url it expects to be able to play with html5 video- or
audiotag based on mimetype.
*/
function canPlayMedia(types, urls) {
var vEl = document.createElement("video");
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs