CC-5788 : Library Cleanup
starting to play an item if the player is paused.
This commit is contained in:
parent
3f043d37c0
commit
f4f1b68abc
|
@ -8,8 +8,10 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
|
|
||||||
function addToPlaylist(data) {
|
function addToPlaylist(data) {
|
||||||
var playNow = false;
|
var playNow = false;
|
||||||
|
var jPlayerData = $("#jquery_jplayer_1").data();
|
||||||
|
|
||||||
if (playlistJPlayer.playlist.length === 0) {
|
//if (playlistJPlayer.playlist.length === 0) {
|
||||||
|
if (jPlayerData.jPlayer.status.paused === true) {
|
||||||
playNow = true;
|
playNow = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,10 +67,9 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
{
|
{
|
||||||
swfPath: baseUrl+"js/jplayer",
|
swfPath: baseUrl+"js/jplayer",
|
||||||
supplied: "mp3, oga, m4a, wav, flac",
|
supplied: "mp3, oga, m4a, wav, flac",
|
||||||
//solution: "flash, html",
|
|
||||||
preload: "none",
|
preload: "none",
|
||||||
wmode: "window",
|
wmode: "window",
|
||||||
remainingDuration: true,
|
//remainingDuration: true,
|
||||||
size: {
|
size: {
|
||||||
width: "0px",
|
width: "0px",
|
||||||
height: "0px",
|
height: "0px",
|
||||||
|
@ -104,8 +105,8 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
});
|
});
|
||||||
|
|
||||||
$( "#open_playlist" ).click(function() {
|
$( "#open_playlist" ).click(function() {
|
||||||
$(".jp-playlist").toggleClass( "open" );
|
$(".jp-playlist").toggleClass("open");
|
||||||
$( this ).toggleClass( "selected" );
|
$(this).toggleClass("selected");
|
||||||
});
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue