You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am instantiating multiple MPV instances within the the same program, which works. Unfortunately when I set properties for individual instances they are applied to all instances. In particular I have tried to use the volume property and the mute property.
eg.
import mpv
player1 = mpv.MPV()
player2 = mpv.MPV()
player1.loadfile('...')
player2.loadfile('...')
player1.volume = 0
The text was updated successfully, but these errors were encountered:
I just tried to reproduce this both with the fullscreen and the mute property and I was unable to confirm it. Are you maybe accidentially muting your entire alsa output due to some backend quirk by setting mute to True?
I am using mpv on Windows, but I think that you are right about the effect being on the entire output. It turns out that I have to set softvol to yes when I instantiate MPV otherwise volume and mute control the master volume instead of the volume of the MPV instance. This doesn't seem intuitive, but it certainly isn't an issue with the python bindings. Thank you for developing python-mpv!
I am instantiating multiple MPV instances within the the same program, which works. Unfortunately when I set properties for individual instances they are applied to all instances. In particular I have tried to use the volume property and the mute property.
eg.
import mpv
player1 = mpv.MPV()
player2 = mpv.MPV()
player1.loadfile('...')
player2.loadfile('...')
player1.volume = 0
The text was updated successfully, but these errors were encountered: