new videoJS skin, fixed auto play of playlist

This commit is contained in:
Techywarrior 2013-05-02 22:29:03 -07:00
parent d453f9419f
commit 050b5909fc
3 changed files with 66 additions and 37 deletions

View File

@ -852,13 +852,16 @@ progress {
/* VideoJS overrides */
.vjs-default-skin .vjs-menu-button {
#videoWindow.tubecss .vjs-controls {
height: 5em!important;
}
#videoWindow.tubecss .vjs-menu-button {
width: 1.5em;
border: 0;
background: none;
}
.vjs-default-skin .vjs-play-control {
#videoWindow.tubecss .vjs-play-control {
width: 2em;
}
@ -867,13 +870,13 @@ progress {
width: auto !important;
}
.vjs-default-skin .vjs-menu-button.vjs-quality-button div {
#videoWindow.tubecss .vjs-menu-button.vjs-quality-button div {
background: url("images/media/quality.png");
height: 16px;
width: 16px;
}
.vjs-default-skin .vjs-chapter-button div {
#videoWindow.tubecss .vjs-chapter-button div {
background: url("images/media/chapter.png");
height: 16px;
width: 16px;
@ -892,14 +895,14 @@ progress {
padding-right: 10px;
}
.vjs-default-skin .vjs-menu-button.vjs-stop-button {
#videoWindow.tubecss .vjs-menu-button.vjs-stop-button {
float: left;
background: none;
border: 0;
width: 2.5em;
}
.vjs-default-skin .vjs-menu-button.vjs-stop-button div {
#videoWindow.tubecss .vjs-menu-button.vjs-stop-button div {
background: url("images/media/stop.png");
height: 26px;
width: 26px;
@ -923,7 +926,7 @@ progress {
padding-right: 10px;
}
.vjs-default-skin .vjs-menu-button.vjs-language-button div {
#videoWindow.tubecss .vjs-menu-button.vjs-language-button div {
background: url("images/media/language.png") !important;
height: 16px;
width: 16px;
@ -941,3 +944,24 @@ progress {
font-size: 1.1em;
padding-right: 10px;
}
#videoWindow.tubecss .vjs-mute-control {
position: absolute;
bottom: 0;
}
#videoWindow.tubecss .vjs-volume-control {
position: absolute;
bottom: 0;
top: auto;
left: 4em;
}
#videoWindow.tubecss .vjs-time-controls, #videoWindow.tubecss .vjs-time-divider {
position: absolute;
bottom: 0;
top: auto;
height: auto;
}
#videoWindow.tubecss .vjs-time-divider {
bottom: 0.4em;
}

View File

@ -169,7 +169,7 @@
baseParams['StartTimeTicks'] = startPosition;
}
var html = '<video id="videoWindow" class="itemVideo video-js vjs-default-skin"></video>';
var html = '<video id="videoWindow" class="itemVideo video-js tubecss"></video>';
var nowPlayingBar = $('#nowPlayingBar');
//hide stop button
@ -235,9 +235,9 @@
(this).addEvent("play", updateProgress);
(this).addEvent("ended", function () {
MediaPlayer.stopVideo();
Playlist.playNext();
//MediaPlayer.stopVideo();
//Playlist.playNext();
MediaPlayer.stop();
});
});
@ -402,7 +402,7 @@
self.playNext = function (itemId) {
ApiClient.getItem(Dashboard.getCurrentUserId(), itemId).done(function (item) {
Playlist.playNext(item);
Playlist.addNext(item);
});
};

View File

@ -31,8 +31,13 @@
self.playNext = function (item) {
if (typeof self.queue[0] != "undefined") {
//MediaPlayer.play(new Array(self.queue[0]));
//self.queue.shift();
MediaPlayer.play(new Array(self.queue[0]));
self.queue.shift();
}
};
self.addNext = function (item) {
if (typeof self.queue[0] != "undefined") {
self.queue.unshift(item);
}else {
self.add(item);