Add notification when queueing jwplayer
This commit is contained in:
parent
3ebf4a1009
commit
cfd70cff12
3 changed files with 25 additions and 10 deletions
|
|
@ -157,6 +157,12 @@ function queueEnd() {
|
|||
if(id) {
|
||||
$("#mediaurl").val("");
|
||||
}
|
||||
if(type == "jw") {
|
||||
makeAlert("JWPlayer",
|
||||
"If you are queueing a file (not a livestream) with JWPlayer, please note it will only synchronize if you assign a leader.",
|
||||
"alert-warning")
|
||||
.insertAfter($("#playlist_controls"));
|
||||
}
|
||||
socket.emit("queue", {
|
||||
id: id,
|
||||
pos: "end",
|
||||
|
|
@ -173,7 +179,7 @@ $("#mediaurl").keydown(function(ev) {
|
|||
|
||||
$("#queue_next").click(function() {
|
||||
var urls = $("#mediaurl").val().split(",");
|
||||
for(var i = 0; i < urls.length; i++) {
|
||||
for(var i = urls.length - 1; i >= 0; i--) {
|
||||
if(!urls[i].trim())
|
||||
continue;
|
||||
var parsed = parseVideoURL(urls[i].trim());
|
||||
|
|
@ -182,6 +188,12 @@ $("#queue_next").click(function() {
|
|||
if(id) {
|
||||
$("#mediaurl").val("");
|
||||
}
|
||||
if(type == "jw") {
|
||||
makeAlert("JWPlayer",
|
||||
"If you are queueing a file (not a livestream) with JWPlayer, please note it will only synchronize if you assign a leader.",
|
||||
"alert-warning")
|
||||
.insertAfter($("#playlist_controls"));
|
||||
}
|
||||
socket.emit("queue", {
|
||||
id: id,
|
||||
pos: "next",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue