Several fixes
- User playlists should now list correctly (fixed a race condition) - Livestream types can autoplay (no longer stuck at currentTime = -3) - Playlist items with NaN duration do not break user playlist saving - ffmpeg support can handle live media (e.g. icecast) - Invalid volume is sanitized and an error message is added - JWPlayer displays correctly for both HTML5 and Flash - JWPlayer volume synchronization is fixed - <audio> and <video> tags are scaled correctly with .embed-responsive-item
This commit is contained in:
parent
b09346392e
commit
b587da6701
7 changed files with 33 additions and 14 deletions
|
|
@ -418,9 +418,6 @@ Callbacks = {
|
|||
/* REGION Rank Stuff */
|
||||
|
||||
rank: function(r) {
|
||||
if (r >= 1) {
|
||||
socket.emit("listPlaylists");
|
||||
}
|
||||
if(r >= 255)
|
||||
SUPERADMIN = true;
|
||||
CLIENT.rank = r;
|
||||
|
|
@ -840,7 +837,7 @@ Callbacks = {
|
|||
}
|
||||
|
||||
/* Failsafe */
|
||||
if (isNaN(VOLUME)) {
|
||||
if (isNaN(VOLUME) || VOLUME > 1 || VOLUME < 0) {
|
||||
VOLUME = 1;
|
||||
}
|
||||
|
||||
|
|
@ -849,8 +846,14 @@ Callbacks = {
|
|||
if (PLAYER && typeof PLAYER.getVolume === "function") {
|
||||
PLAYER.getVolume(function (v) {
|
||||
if (typeof v === "number") {
|
||||
VOLUME = v;
|
||||
setOpt("volume", VOLUME);
|
||||
if (v < 0 || v > 1) {
|
||||
alert("Something went wrong with retrieving the volume. " +
|
||||
"Please tell calzoneman the following: " +
|
||||
JSON.stringify({ v: v, t: PLAYER.type, i: PLAYER.videoId }));
|
||||
} else {
|
||||
VOLUME = v;
|
||||
setOpt("volume", VOLUME);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue