darktrojan / openwith

Open With add-on for Firefox
https://addons.mozilla.org/addon/open-with/
412 stars 71 forks source link

doesn't work with mpv on mac #213

Open neoromantique opened 6 years ago

neoromantique commented 6 years ago

I use this tool to launch stuff from youtube in mpv, it works great on Windows and Linux, but doesn't work on Chrome/Mac.

Open with Safari/Chrome works perfectly well.

Where can I find logs?

JayBrown commented 6 years ago

Possibly related: https://github.com/darktrojan/openwith/issues/228

IINA is based on mpv. Though I'm using it in Firefox.

for-coursera commented 5 years ago

@JayBrown, thanks for the hint but no, it doesn't seem to work with mpv. The extension works fine with VLC, though.

jgreco commented 4 years ago

It works for me on Firefox 72 with macOS 10.14 (and has been working with previous versions as well.) One possibility is that mpv isn't in PATH, at least as far as the open-with utility is concerned. You might try using the full path to mpv instead, e.g. /usr/local/bin/mpv Screen Shot 2020-01-15 at 19 29 21

for-coursera commented 4 years ago

@jgreco, thanks for your reply!

It seems that you have installed mpv via brew, right? I, on the other hand, just downloaded the app, and this seems to be the culprit, since for me

does open mpv via Open With. While using the same two approaches with VLC succeeds in both cases.

Don't really know why is it possible... :)

EDIT: Just to clarify, running /Applications/mpv.app/Contents/MacOS/mpv <YOUTUBE-LINK> in the shell sure works.

EDIT 2: For the record, I even build MPlayer (yeah, that oldie) from the source, created this simple wrapper mplayer.sh:

#!/bin/sh

~/usr/local/bin/youtube-dl -o- "$1" | ~/usr/local/bin/mplayer -

added mplayer.sh's absolute path to Open With, and it worked :)

drcharris commented 4 years ago

This works for me on Mac with the app version of mpv, FF 79.0

/Applications/mpv.app/Contents/MacOS/mpv-bundle %s