SilverEzhik / mpv-msix

mpv packaged for Windows 10
https://www.microsoft.com/store/productId/9P3JFR0CLLL6
GNU Affero General Public License v3.0
51 stars 3 forks source link

ff2mpv compatible #7

Open Niotferdi opened 2 years ago

Niotferdi commented 2 years ago

The only scenario where I need a single instance feature is when watching network videos. The most convenient way to open network videos is with the ff2mpv browser add-on. I haven't found a way to get mpv-msix to work with ff2mpv - videos still open in different windows. How about adding compatibility with this add-on?

SilverEzhik commented 2 years ago

I've taken a look at ff2mpv extension and it looks like it works by launching the mpv.exe executable using a native connector.

mpv-msix includes the mpv:// URI scheme. You should actually be able to use this without an external connector, but you'd need an extension that leverages this.

If you want to keep using ff2mpv, you can try invoking this scheme from the connector app by changing its args parameter:

args = ['start', f'mpv://play?file={url}']

You should be able to modify that template using other parameters as described here: https://github.com/SilverEzhik/mpv-msix#mpv-uri-scheme

Hope this works well for your use case.