Add get_time_position() to playback provider interface
This commit is contained in:
parent
12d6ce53dd
commit
b60e6806ce
@ -65,6 +65,16 @@ class BasePlaybackProvider(object):
|
||||
"""
|
||||
return self.backend.audio.stop_playback().get()
|
||||
|
||||
def get_time_position(self):
|
||||
"""
|
||||
Get the current time position in milliseconds.
|
||||
|
||||
*MAY be reimplemented by subclass.*
|
||||
|
||||
:rtype: int
|
||||
"""
|
||||
return self.backend.audio.get_position().get()
|
||||
|
||||
def get_volume(self):
|
||||
"""
|
||||
Get current volume
|
||||
|
||||
Loading…
Reference in New Issue
Block a user