mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
fix media session
This commit is contained in:
parent
8a30558ac1
commit
7e33afa94d
3 changed files with 22 additions and 20 deletions
|
|
@ -243,7 +243,7 @@ export default {
|
|||
};
|
||||
},
|
||||
computed: {
|
||||
...mapState(["settings", "data"]),
|
||||
...mapState(["player", "settings", "data"]),
|
||||
isElectron() {
|
||||
return process.env.IS_ELECTRON;
|
||||
},
|
||||
|
|
@ -293,7 +293,7 @@ export default {
|
|||
set(deviceId) {
|
||||
if (deviceId === this.settings.outputDevice || deviceId === undefined) return;
|
||||
this.$store.commit("changeOutputDevice", deviceId);
|
||||
document.querySelector("audio").setSinkId(deviceId); // Change output device
|
||||
this.player.setOutputDevice();
|
||||
},
|
||||
},
|
||||
showGithubIcon: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue