Fixed broken raw media playback for youtube, added go live button.

This commit is contained in:
rainbow napkin 2025-05-01 05:35:40 -04:00
parent 2acba1a605
commit 00ac19c80c
3 changed files with 14 additions and 0 deletions

View file

@ -758,6 +758,7 @@ module.exports = {
try{ try{
var video = await YTDLP(id,{ var video = await YTDLP(id,{
dumpSingleJson: true, dumpSingleJson: true,
format: "b"
} }
) )

View file

@ -131,6 +131,8 @@ html(lang="en")
#plcontrol.btn-group #plcontrol.btn-group
button#showmediaurl.btn.btn-sm.btn-default(title="Add video from URL", data-toggle="collapse", data-target="#addfromurl") button#showmediaurl.btn.btn-sm.btn-default(title="Add video from URL", data-toggle="collapse", data-target="#addfromurl")
span.glyphicon.glyphicon-plus 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") button#showsearch.btn.btn-sm.btn-default(title="Channel History + Video Search", data-toggle="collapse", data-target="#searchcontrol")
span.glyphicon.glyphicon-search span.glyphicon.glyphicon-search
button#showplaylistmanager.btn.btn-sm.btn-default(title="Manage playlists", data-toggle="collapse", data-target="#playlistmanager") button#showplaylistmanager.btn.btn-sm.btn-default(title="Manage playlists", data-toggle="collapse", data-target="#playlistmanager")

View file

@ -777,6 +777,17 @@ $("#queue_end").click(queue.bind(this, "end", "url"));
$("#ce_queue_next").click(queue.bind(this, "next", "customembed")); $("#ce_queue_next").click(queue.bind(this, "next", "customembed"));
$("#ce_queue_end").click(queue.bind(this, "end", "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) { $("#mediaurl").keyup(function(ev) {
if (ev.keyCode === 13) { if (ev.keyCode === 13) {
queue("end", "url"); queue("end", "url");