wip now playing screen

This commit is contained in:
Rudis Muiznieks 2022-12-28 13:02:58 -06:00
parent 769a26a30c
commit cb52cc5f70
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
1 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,5 @@
from os import path
from time import sleep
from menu import Menu, MenuType
from cinput import ControlInput
from graphics import Graphics
@ -50,7 +51,11 @@ class MusicPlayer:
self._graphics.show()
def _run_now_playing(self, player: MPV):
player.wait_for_playback()
player.wait_until_playing()
ic(player.properties["filename"])
while not player.core_idle:
sleep(0.5)
self._graphics.show()
def _draw_progress(self, pos: int, length: int):
pos_str = self._convert_seconds(pos)