forked from platypush/platypush
[media] Fixed base interface of media.seek
and media.set_position
.
This commit is contained in:
parent
cf314f2615
commit
6fe1ed44ad
2 changed files with 3 additions and 3 deletions
|
@ -470,12 +470,12 @@ class MediaPlugin(Plugin, ABC):
|
||||||
|
|
||||||
@action
|
@action
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def seek(self, **kwargs):
|
def seek(self, position, **kwargs):
|
||||||
raise self._NOT_IMPLEMENTED_ERR
|
raise self._NOT_IMPLEMENTED_ERR
|
||||||
|
|
||||||
@action
|
@action
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def set_position(self, **kwargs):
|
def set_position(self, position, **kwargs):
|
||||||
raise self._NOT_IMPLEMENTED_ERR
|
raise self._NOT_IMPLEMENTED_ERR
|
||||||
|
|
||||||
@action
|
@action
|
||||||
|
|
|
@ -279,7 +279,7 @@ class MediaVlcPlugin(MediaPlugin):
|
||||||
return status
|
return status
|
||||||
|
|
||||||
@action
|
@action
|
||||||
def seek(self, position: float):
|
def seek(self, position: float, **__):
|
||||||
"""
|
"""
|
||||||
Seek backward/forward by the specified number of seconds
|
Seek backward/forward by the specified number of seconds
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue