-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to open Plex video in any player with 3 clicks in any web browser (no plugin needed!) #51
Comments
That last step nr.3 can be expedited with a script / macro / service, tied to a global hotkey.
|
|
Just wanted to add that for cases where the download link works, the extension will also work in the next version I'm currently working on. I'm all for providing alternative ways to get this functionality though, I just wanted to point that out. I can leave this as an open issue here but I thought it might make more sense for you to make a gist that I can link to in the readme? Or I can incorporate it into the repo as a markdown file which would be linked to in the main readme. Let me know what you think. |
I do not know too much about the "Download Link" yet. But if you say that download link sometimes works and sometimes not, I have a suspicion: Plex tries to stream the video as-is:
Otherwise Plex transcodes on the fly or uses pre-transcoded variants. And I guess in these instances the "Download Link" may differ? |
Now regarding my alternative method I outlined in this issue:
|
I have one more idea for an alternative Mac solution, which needs only a single shortcut!
Hotkey/App opens Plex video from Safari's top window in video player of choicePseudo code:
Want to develop this software?
|
I've never really worked with swift or objective-c so I'm probably not the right person to implement this. But I did a little research just now and as far as I can tell this will only work with Safari through Applescript, like you said. Applescript can be invoked by Swift so in theory what you describe is possible. It's just that it will only work with Safari. Technically it might still work in Chrome, but who knows how long they will support the scripting interface. There could be another way using ui automation but that seems a bit involved. I feel like the more appropriate way of extending the feature set of a browser or a webpage is a browser extension. Speaking of other Browsers, I do have plans to support Firefox in the future which would broaden the scope of this project a bit. I can see the usecase for people using Safari and wanting to use an external player for Plex but I'm afraid I don't have the time to write an app like that and maintain it at the moment. |
Estimate with my scripting skills
|
I had a go at it for fun and it's pretty easy to do with Shortcuts. This works for Safari, you can have it listen to a keyboard shortcut etc. It doesn't have a picker for the player but you can just change vlc to mpv or iina in the shell script either manually or with a prompt. Check it out: https://www.icloud.com/shortcuts/2734fbb767474c3f8ab5ce5a72f2a3f6 You need to enable "Allow JavaScript from Apple Events" in the Developer menu of Safari for it to work. I imagine you could make it work without that by using the "Get Details of Safari Web Page" block inside Shortcuts, but you would need to build the download link yourself and I didn't try that. |
Cool to know, but only possible for me in the future as I'm on macOS Big Sur which does not yet have Shortcuts.app |
Did this experiment make you eager to do the whole software as I outlined it? |
The text was updated successfully, but these errors were encountered: