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))
def set_position(self, pos): """Seek in the current playing media.""" return self.protocol.send(messages.seek_to_position(pos))