Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7503

Troubleshooting • Re: python script does not launch MPV in fullscreen when started by a desktop file on boot

$
0
0
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 :

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



Viewing all articles
Browse latest Browse all 7503

Trending Articles