[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: 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
@abstractmethod
def seek(self, **kwargs):
def seek(self, position, **kwargs):
raise self._NOT_IMPLEMENTED_ERR
@action
@abstractmethod
def set_position(self, **kwargs):
def set_position(self, position, **kwargs):
raise self._NOT_IMPLEMENTED_ERR
@action

View File

@ -279,7 +279,7 @@ class MediaVlcPlugin(MediaPlugin):
return status
@action
def seek(self, position: float):
def seek(self, position: float, **__):
"""
Seek backward/forward by the specified number of seconds