I tried a sleep in the python script before doing anything with mpv, without success.
I found a dirty workaround and that will do the trick for me. Loading MPV in widowed mode, sleeping 1 second then setting it fullscreen :
I found a dirty workaround and that will do the trick for me. Loading MPV in widowed mode, sleeping 1 second then setting it fullscreen :
Code:
player = mpv.MPV()player.fullscreen = Falseplayer.loop = Trueplayer.play('video.mp4')time.sleep(1)player.fullscreen = Trueplayer.wait_for_playback()Statistics: Posted by krs — Mon Sep 01, 2025 7:23 pm