baudm / mplayer.py

Lightweight Python wrapper for MPlayer
http://pypi.python.org/pypi/mplayer.py
GNU Lesser General Public License v3.0
117 stars 32 forks source link

Additional startup parameters for mplayer command #7

Closed baudm closed 9 years ago

baudm commented 9 years ago

Original issue 4 created by baudm on 2011-04-28T14:15:55.000Z:

Please allow adding of extra parameters to mplayer command line. For example I need "-volume 0". When it's started, it's playing at 100% volume and even if I am trying to immediatelly change it to real volume set in my application, it's aprox 1 second playing at max volume, which is very disturbing.

What version of the product are you using? On what operating system? 0.6.0 on Fedora Linux

baudm commented 9 years ago

Comment #1 originally posted by baudm on 2011-04-28T14:27:25.000Z:

This works for me, but it's not elegant:

class MPlayerWidget(GtkPlayerView): def init(self): GtkPlayerView.init(self) self._mplayer.args += ['-volume', '0']

baudm commented 9 years ago

Comment #2 originally posted by baudm on 2011-04-29T03:56:17.000Z:

Hi,

Thanks for filling a bug report. I will be releasing 0.7.0 soon; it contains this feature. If you really need this functionality now, you can just checkout the latest changesets.