mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Fix bug in vlc_telnet seeking (#48425)
Seems the code assumed a different `vlc_telnet` API. Note that this doesn't address issues in `update()`, which will be handled in a different PR. PR extracted from #44776.
This commit is contained in:
parent
958c4764f7
commit
70e3fc430c
@ -220,8 +220,7 @@ class VlcDevice(MediaPlayerEntity):
|
||||
|
||||
def media_seek(self, position):
|
||||
"""Seek the media to a specific location."""
|
||||
track_length = self._vlc.get_length() / 1000
|
||||
self._vlc.seek(position / track_length)
|
||||
self._vlc.seek(int(position))
|
||||
|
||||
def mute_volume(self, mute):
|
||||
"""Mute the volume."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user