Finished mediahandler placeholder, fixed most scheduler bugs with webrtc scheduling, started pushing iceServers w/ media object instead of clientmetadata.

This commit is contained in:
rainbow napkin 2026-07-11 03:54:23 -04:00
parent b68d55b7ef
commit 3517a1499a
7 changed files with 72 additions and 12 deletions

View file

@ -188,7 +188,7 @@ class queuePanel extends panelObj{
*/
handleStart(data){
//If we're starting an HLS Livestream
if(data.media != null && data.media.type == 'livehls'){
if(data.media != null && (data.media.type == 'livehls' || data.media.type == 'webrtc' )){
//Hide the 'goLive' controls
this.goLiveDiv.style.display = 'none';
}
@ -282,7 +282,7 @@ class queuePanel extends panelObj{
client.socket.emit('getStreamType');
//If we're not livestreaming
if(client.player.mediaHandler.type != "livehls"){
if(client.player.mediaHandler.type != "livehls" && client.player.mediaHandler.type != "webrtc"){
//If the div is hidden
if(this.goLiveDiv.style.display == 'none'){
//Show the div
@ -1188,7 +1188,7 @@ class queuePanel extends panelObj{
const staleEntry = this.queueContainer.querySelector('.queue-entry.live');
//If we're not livestreaming
if(client.player.mediaHandler.type != "livehls"){
if(client.player.mediaHandler.type != "livehls" && client.player.mediaHandler.type != "webrtc"){
//If we have a stale entry
if(staleEntry != null){
//Remove stale entry since we're no longer streaming