Author: andre
Date: 2010-06-23 13:36:02 +0200 (Wed, 23 Jun 2010)
New Revision: 42662
Modified:
openimages/trunk/src/main/webapp/oiplayer/js/jquery.oiplayer.js
Log:
audio does not need fullscreen
Modified: openimages/trunk/src/main/webapp/oiplayer/js/jquery.oiplayer.js
===================================================================
--- openimages/trunk/src/main/webapp/oiplayer/js/jquery.oiplayer.js
2010-06-23 10:28:03 UTC (rev 42661)
+++ openimages/trunk/src/main/webapp/oiplayer/js/jquery.oiplayer.js
2010-06-23 11:36:02 UTC (rev 42662)
@@ -68,7 +68,7 @@
$(div).prepend(poster);
if (config.controls && player.url != undefined) {
- $(div).append(controlsHtml());
+ $(div).append(controlsHtml(player));
player.ctrls = $(div).find('div.controls');
if (config.controls != true) { // we're using classes, append
them
@@ -414,7 +414,7 @@
}
}
- function controlsHtml() {
+ function controlsHtml(player) {
var html;
if (isIphone()) {
html = '<div class="controls"><ul class="controls">' +
@@ -434,7 +434,7 @@
'<div class="timeleft">-00:00</div>' +
'</li>' +
'<li class="sound"><a title="mute"
href="#sound">mute</a></li>' +
- '<li class="screen"><a title="fullscreen"
href="#fullscreen">fullscreen</a></li>' +
+ (player.type == 'video' ? '<li class="screen"><a
title="fullscreen" href="#fullscreen">fullscreen</a></li>' : '') +
'</ul></div>';
}
return html;
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs