Browse files

removed test.js

  • Loading branch information...
1 parent 272927c commit 3cbc902e90c8ac6a97eb89da18b5a62d4e79f58d @pupunzi committed Apr 14, 2012
View
2 HTML5_API.html
@@ -183,7 +183,7 @@
});
player.b.id="player_"+playerID;
- player.playVideo();
+ //player.playVideo();
})
});
},
View
33 css/mb.YTVPlayer.css
@@ -39,20 +39,32 @@
-moz-box-sizing:padding-box;
-webkit-box-sizing:border-box;
text-align:left;
- opacity:.95;
z-index: 1000;
font: 14px/16px sans-serif;
color:white;
+ opacity:.3;
}
-.mb_YTVPBar span{
- display:inline-block;
- height:0;
+
+.mb_YTVPBar:hover{
+ opacity:1;
+}
+
+.mb_YTVPBar .buttonBar{
background:transparent;
font:12px/14px Calibri;
position:relative;
- padding:10px;
- top:-50px;
+ top:-30px;
+}
+
+.mb_YTVPBar span{
+ display:inline-block;
+ font:16px/20px Calibri;
+ position:relative;
+ width: 30px;
+ height: 25px;
+ vertical-align: middle;
}
+
.mb_YTVPPlaypause,.mb_YTVPlayer .mb_YTVPPlaypause img{
cursor:pointer;
}
@@ -61,22 +73,22 @@
cursor:pointer;
}
-
/*PROGRESS BAR*/
.mb_YTVPProgress{
height:10px;
width:100%;
background:#222;
bottom:0;
- left:0px;
-
+ left:0;
}
+
.mb_YTVPLoaded{
height:10px;
width:0;
background:#444;
left:0;
}
+
.mb_YTVTime{
height:5px;
width:0;
@@ -85,5 +97,4 @@
left:0;
-moz-box-shadow:#666666 1px 1px 3px;
-webkit-box-shadow:#666666 1px 1px 3px;
-}
-
+}
View
BIN images/17.jpg
Deleted file not rendered
View
BIN images/mute.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN images/pause.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN images/play.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN images/unmute.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
13 inc/jquery.mb.YTPlayer.js
@@ -159,7 +159,7 @@
//if it is as background
if(data.isBgndMovie && !BGisInit){
- if ($.mbYTPlayer.rasterImg && $("mbYTP_raster").length==0){
+ if ($.mbYTPlayer.rasterImg && $(".mbYTP_raster").length==0){
$(playerContainer).append(raster);
}
@@ -275,6 +275,8 @@
player.isInit=true;
var YTPlayer= $(this).parent();
var controlBar=$("<span/>").addClass("mb_YTVPBar").css({whiteSpace:"noWrap",position: data.isBgndMovie && !data.ID ? "fixed" : "absolute"}).hide();
+
+ var buttonBar=$("<div/>").addClass("buttonBar");
var playpause =$("<span>"+$.mbYTPlayer.controls.play+"</span>").addClass("mb_YTVPPlaypause").click(function(){
if(player.getPlayerState()== 1){
$(player).pauseYTP();
@@ -301,8 +303,11 @@
});
var loadedBar = $("<div/>").addClass("mb_YTVPLoaded").css("position","absolute");
var timeBar = $("<div/>").addClass("mb_YTVTime").css("position","absolute");
+
+
progressBar.append(loadedBar).append(timeBar);
- controlBar.append(playpause).append(MuteUnmute).append(idx).append(progressBar);
+ buttonBar.append(playpause).append(MuteUnmute).append(idx);
+ controlBar.append(buttonBar).append(progressBar);
YTPlayer.append(controlBar);
if (!data.isBgndMovie)
@@ -388,10 +393,10 @@ function playerState(state, el) {
}
if ((state==-1 || state==3) && data.isBgndMovie) {
- $(player).css({opacity:0});
+ //$(player).css({opacity:0});
$(".mbYTP_raster").css({opacity:.5,backgroundColor:"black"}).fadeIn();
$(".mbYTP_bufferImg").css({opacity:.2}).fadeIn();
- $("#wrapper_"+player.id).css({opacity:0});
+ //$("#wrapper_"+player.id).css({opacity:0});
$(document).trigger("YTPBuffering");
}

0 comments on commit 3cbc902

Please sign in to comment.