allow mv audio to be casted (expect massive delay)
This commit is contained in:
parent
c96585e854
commit
87aa98ca26
1 changed files with 14 additions and 0 deletions
|
@ -194,6 +194,7 @@ const app = new Vue({
|
|||
title: "",
|
||||
type: "",
|
||||
},
|
||||
MVsource: null,
|
||||
prevButtonBackIndicator: false,
|
||||
currentSongInfo: {},
|
||||
page: "",
|
||||
|
@ -992,6 +993,19 @@ const app = new Vue({
|
|||
if (this.currentSongInfo === null || this.currentSongInfo === undefined) {
|
||||
return;
|
||||
} // EVIL EMPTY OBJECTS BE GONE
|
||||
|
||||
try{
|
||||
if ((MusicKit.getInstance().nowPlayingItem["type"] ?? '').includes("ideo")){
|
||||
setTimeout(() => {
|
||||
this.MVsource = CiderAudio.context.createMediaElementSource(document.querySelector('div#apple-music-video-player > video'));
|
||||
this.MVsource.connect(CiderAudio.audioNodes.intelliGainComp); }, 300);} else {
|
||||
this.MVsource.disconnect();
|
||||
this.MVsource = null
|
||||
}
|
||||
} catch (e) {
|
||||
// console.log(e);
|
||||
}
|
||||
|
||||
let localFiles = false;
|
||||
try {
|
||||
if (app.mk.nowPlayingItem.flavor.includes("64") && app.mk.nowPlayingItem.flavor.includes(":")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue