wip now playing screen
This commit is contained in:
parent
769a26a30c
commit
cb52cc5f70
|
@ -1,4 +1,5 @@
|
||||||
from os import path
|
from os import path
|
||||||
|
from time import sleep
|
||||||
from menu import Menu, MenuType
|
from menu import Menu, MenuType
|
||||||
from cinput import ControlInput
|
from cinput import ControlInput
|
||||||
from graphics import Graphics
|
from graphics import Graphics
|
||||||
|
@ -50,7 +51,11 @@ class MusicPlayer:
|
||||||
self._graphics.show()
|
self._graphics.show()
|
||||||
|
|
||||||
def _run_now_playing(self, player: MPV):
|
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):
|
def _draw_progress(self, pos: int, length: int):
|
||||||
pos_str = self._convert_seconds(pos)
|
pos_str = self._convert_seconds(pos)
|
||||||
|
|
Reference in New Issue