Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properties act on all instances when being applied to a single instance of an MPV class #8

Closed
gmckesey opened this issue Mar 9, 2016 · 2 comments

Comments

@gmckesey
Copy link

gmckesey commented Mar 9, 2016

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

@jaseg
Copy link
Owner

jaseg commented Mar 9, 2016

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?

@gmckesey
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants