Youtube videos technically queable/playable

This commit is contained in:
rainbow napkin 2025-05-06 07:48:24 -04:00
parent 0ce0685fd5
commit 9d9aa5672f
5 changed files with 24 additions and 9 deletions

View file

@ -265,7 +265,7 @@ class rawFileHandler extends rawFileBase{
start(){
//Set video
this.video.src = this.nowPlaying.id;
this.video.src = this.nowPlaying.rawLink;
//Set video volume
this.video.volume = this.player.volume;

View file

@ -87,7 +87,7 @@ class player{
//Otherwise
}else{
//If we have a raw-file compatible source
if(data.media.type == 'ia' || data.media.type == 'raw'){
if(data.media.type == 'ia' || data.media.type == 'raw' || data.media.type == 'yt'){
//Create a new raw file handler for it
this.mediaHandler = new rawFileHandler(client, this, data.media);
//Sync to time stamp