Fixed broken raw media playback for youtube, added go live button.
This commit is contained in:
parent
2acba1a605
commit
00ac19c80c
|
|
@ -758,6 +758,7 @@ module.exports = {
|
|||
try{
|
||||
var video = await YTDLP(id,{
|
||||
dumpSingleJson: true,
|
||||
format: "b"
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -131,6 +131,8 @@ html(lang="en")
|
|||
#plcontrol.btn-group
|
||||
button#showmediaurl.btn.btn-sm.btn-default(title="Add video from URL", data-toggle="collapse", data-target="#addfromurl")
|
||||
span.glyphicon.glyphicon-plus
|
||||
button#golive.btn.btn-sm.btn-danger(title="Go Live")
|
||||
span.glyphicon.glyphicon-record
|
||||
button#showsearch.btn.btn-sm.btn-default(title="Channel History + Video Search", data-toggle="collapse", data-target="#searchcontrol")
|
||||
span.glyphicon.glyphicon-search
|
||||
button#showplaylistmanager.btn.btn-sm.btn-default(title="Manage playlists", data-toggle="collapse", data-target="#playlistmanager")
|
||||
|
|
|
|||
11
www/js/ui.js
11
www/js/ui.js
|
|
@ -777,6 +777,17 @@ $("#queue_end").click(queue.bind(this, "end", "url"));
|
|||
$("#ce_queue_next").click(queue.bind(this, "next", "customembed"));
|
||||
$("#ce_queue_end").click(queue.bind(this, "end", "customembed"));
|
||||
|
||||
$("#golive").click(function(ev){
|
||||
socket.emit('queue', {
|
||||
id: "https://stream.ourfore.st",
|
||||
type: 'hl',
|
||||
pos: "next",
|
||||
minDuration: 0,
|
||||
temp: true,
|
||||
subtitle: ''
|
||||
});
|
||||
});
|
||||
|
||||
$("#mediaurl").keyup(function(ev) {
|
||||
if (ev.keyCode === 13) {
|
||||
queue("end", "url");
|
||||
|
|
|
|||
Loading…
Reference in a new issue