mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-20 20:21:20 -08:00
update airplayMix
This commit is contained in:
1 parent
a39a2a19da
commit
2294620436
6 files changed
+48
-43
No files matched your search
@@ -8,7 +8,7 @@ export default function airplayMix(art) {
|
||||
template: { $video },
|
||||
} = art;
|
||||
|
||||
let available = false;
|
||||
let available = true;
|
||||
|
||||
if (window.WebKitPlaybackTargetAvailabilityEvent && $video.webkitShowPlaybackTargetPicker) {
|
||||
proxy($video, 'webkitplaybacktargetavailabilitychanged', (event) => {
|
||||
@@ -21,6 +21,8 @@ export default function airplayMix(art) {
|
||||
break;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
available = false;
|
||||
}
|
||||
|
||||
def(art, 'airplay', {
|
||||
|
||||
Reference in new issue
Block a user