[media] Fixed base interface of media.seek and media.set_position.

This commit is contained in:
Fabio Manganiello 2024-01-13 22:39:33 +01:00
parent cf314f2615
commit 6fe1ed44ad
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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