Skip to content

Commit

Permalink
removed test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
pupunzi committed Apr 14, 2012
1 parent 272927c commit 3cbc902
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 16 deletions.
2 changes: 1 addition & 1 deletion HTML5_API.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
});

player.b.id="player_"+playerID;
player.playVideo();
//player.playVideo();
})
});
},
Expand Down
33 changes: 22 additions & 11 deletions css/mb.YTVPlayer.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
Expand All @@ -85,5 +97,4 @@
left:0;
-moz-box-shadow:#666666 1px 1px 3px;
-webkit-box-shadow:#666666 1px 1px 3px;
}

}
Binary file removed images/17.jpg
Binary file not shown.
Binary file modified images/mute.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/pause.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/play.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/unmute.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 9 additions & 4 deletions inc/jquery.mb.YTPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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();
Expand All @@ -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)
Expand Down Expand Up @@ -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");
}

Expand Down

0 comments on commit 3cbc902

Please sign in to comment.