forked from platypush/platypush
Added set_volume action to mplayer plugin
This commit is contained in:
parent
d0a288b423
commit
535c4bbc17
1 changed files with 10 additions and 0 deletions
|
@ -317,6 +317,16 @@ class MediaMplayerPlugin(MediaPlugin):
|
|||
"""
|
||||
return self.set_property('time_pos', position)
|
||||
|
||||
@action
|
||||
def set_volume(self, volume):
|
||||
"""
|
||||
Set the volume
|
||||
|
||||
:param volume: Volume value between 0 and 100
|
||||
:type volume: float
|
||||
"""
|
||||
return self._exec('volume', volume)
|
||||
|
||||
@action
|
||||
def get_property(self, property, args=None):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue