Enable seeking to specific points in the current song

This commit is contained in:
Danielle McLean 2023-12-06 13:54:40 +11:00
parent 04a976f6f3
commit 3372180a97
Signed by: 00dani
GPG key ID: 52C059C3B22A753E
5 changed files with 62 additions and 20 deletions

View file

@ -5,19 +5,22 @@ from mpd.base import MPDClientBase
from mpd_now_playable.mpd import types
class MPDClient(MPDClientBase):
mpd_version: str | None
mpd_version: str | None
def __init__(self) -> None: ...
async def connect(self, host: str, port: int = ...) -> None: ...
async def password(self, password: str) -> None: ...
def idle(self, subsystems: Sequence[str] = ...) -> AsyncIterator[Sequence[str]]: ...
async def status(self) -> types.StatusResponse: ...
async def currentsong(self) -> types.CurrentSongResponse: ...
async def readpicture(self, uri: str) -> types.ReadPictureResponse: ...
async def play(self) -> None: ...
async def pause(self, pause: Literal[1, 0, None] = None) -> None: ...
async def stop(self) -> None: ...
async def next(self) -> None: ... # noqa: A003
async def previous(self) -> None: ...
def __init__(self) -> None: ...
async def connect(self, host: str, port: int = ...) -> None: ...
async def password(self, password: str) -> None: ...
def idle(self, subsystems: Sequence[str] = ...) -> AsyncIterator[Sequence[str]]: ...
async def status(self) -> types.StatusResponse: ...
async def currentsong(self) -> types.CurrentSongResponse: ...
async def readpicture(self, uri: str) -> types.ReadPictureResponse: ...
async def play(self) -> None: ...
async def pause(self, pause: Literal[1, 0, None] = None) -> None:
"""Pause MPD or toggle its play/pause state. Pass pause=1 to unconditionally pause, pause=0 to unconditionally unpause, or pause=None to toggle."""
pass
async def stop(self) -> None: ...
async def next(self) -> None: ... # noqa: A003
async def previous(self) -> None: ...
async def seekcur(self, position: float) -> None:
"""Seek to a particular time in the currently playing song, measured in seconds. Fractional seconds are supported."""
pass