diff -r a39204d50541 -r 562c33513553 client/player/index-player6.html --- a/client/player/index-player6.html Thu Jun 10 19:18:58 2010 +0200 +++ b/client/player/index-player6.html Thu Jun 10 19:19:13 2010 +0200 @@ -1,23 +1,25 @@ + - Augmented Media Player v 0.06 | with JWplayer + + Augmented Media Player v 0.06 | with JWplayer - + --> @@ -58,7 +60,7 @@ .tooltip { display:none; - background:transparent url(css/tooltip/white_arrow.png); + background:transparent url(css/jq-css/tooltip/white_arrow.png); font-size:12px; height:100px; width:180px; @@ -68,10 +70,14 @@ color:#000; } - .annotations{ + #Annotations{ + padding-left:5px; + width:470px; + float:left; } #ldtSaTitle{ padding-top:2px; + padding-bottom:5px; font-size:18px; color:#FFF; height:22p; @@ -81,24 +87,51 @@ color:#FFF; } #ShowAnnotation{ - position: absolute; + position:absolute; z-index: 999; padding:5px; - background:url(css/custom-theme/images/trans.png);padding:5px; + background:url(css/custom/images/transBlack.png); + } + + #ldtPlaceHolder{ + position:absolue; + float:none; + } + .ldtControl1{ + width:70px; + float:left; + } + .ldtControl2{ + padding-left:10px; + width:70px; + float:left; } @@ -160,18 +193,34 @@ if (player) { player.addModelListener("TIME", "positionListener"); player.addControllerListener("VOLUME", "volumeListener"); + player.addPlayPauseListener("PLAY", "state"); } else { setTimeout("addListeners()",100); } - - + // et changer les boutons - - } //function + function addPlayPauseListener(obj) { + if(obj){ + $jIRI(".control1 button:first").button({ + icons: { + primary: 'ui-icon-pause' + }, + text: false + }); + }else{ + $jIRI(".control1 button:first").button({ + icons: { + primary: 'ui-icon-play' + }, + text: false + }); + } + } + function positionListener(obj) { currentPosition = obj.position; var tmp = document.getElementById("posit"); @@ -190,9 +239,18 @@ } function createPlayer(width,height,url) { + + myUrlFragment = url.split("/"); + // + file = myUrlFragment[myUrlFragment.length-3]+"/"+myUrlFragment[myUrlFragment.length-2]+"/"+myUrlFragment[myUrlFragment.length-1]; + indexofff = url.lastIndexOf(file); + streamer = url.substr(0,indexofff); + alert(url+"="+streamer+" - "+file); + var flashvars = { - streamer:"rtmp://media.iri.centrepompidou.fr/ddc_player/", - file:"video/stephenfrears_lesliaisonsdangereuses.flv", + streamer:streamer, + file:file, + //live:"true", autostart:"true", controlbar:"none" } @@ -211,13 +269,7 @@ swfobject.embedSWF("swf/player.swf", "ldtPlaceHolder", width, height, "9.0.115", false, flashvars, params, attributes); } - function streamOrNot(){ - - } - function timeToPourcent(time,timetotal){ - return (Math.round(time/timetotal*100)); - } @@ -225,63 +277,75 @@ - - - @@ -565,61 +617,21 @@ + + +
-
- -
- -
-
Test
-
le journaliste et M. Ahankhah passent le portail et se dirigent vers la -
- -
- -
- Get flash to see this player -
-
- -
-
- - -
-
-
-
-
- - -
-
+




+
- +
- -
-




- -
- - play/pause toggle
- stop playing and buffering
- seek current position +10 seconds
- seek current position -10 seconds
- set current volume +10%
- set current volume -10%
- update slider
-
vol
-
posit
-
-
- \ No newline at end of file