akiirui / mpv-handler

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

Move mpv foreground window in Windows #48

Open tliron opened 3 months ago

tliron commented 3 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 3 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