akiirui / mpv-handler

A protocol handler for mpv. Use mpv and yt-dlp to play video and music from the websites.
MIT License
253 stars 22 forks source link

Move mpv foreground window in Windows #48

Open tliron opened 4 months ago

tliron commented 4 months ago

Great tool!

When launched, mpv is a background window (Windows 11). Is there a way to make it foregrounded when launched?

Also, is there a way to may it fullscreen when launched?

akiirui commented 4 months ago

mpv has an option --focus-on=open, but it is only available on macOS.

There is no way to set focus for mpv on Windows. But you can set --ontop, which makes the mpv window always on top of other windows. (You can disable this by pressing t after starting the player)

To start mpv in fullscreen, try --fullscreen.

Add these options (remove the prefix --) to mpv.conf