Esempio n. 1
0
 async def set_position(self, pos: int) -> None:
     """Seek in the current playing media."""
     await self.protocol.send_and_receive(messages.seek_to_position(pos))
Esempio n. 2
0
 def set_position(self, pos):
     """Seek in the current playing media."""
     return self.protocol.send(messages.seek_to_position(pos))