Youtube videos technically queable/playable
This commit is contained in:
parent
0ce0685fd5
commit
9d9aa5672f
5 changed files with 24 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue