mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 00:31:20 -08:00
add mute
This commit is contained in:
1 parent
0fb3dba760
commit
f6ef3da5aa
3 files changed
+12
-1
No files matched your search
@@ -16,4 +16,10 @@ export default function volumeMix(art, player) {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Object.defineProperty(player, 'mute', {
|
||||
value: () => {
|
||||
player.volume = 0;
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user