iv-org / invidious

Invidious is an alternative front-end to YouTube
https://invidious.io
GNU Affero General Public License v3.0
16.42k stars 1.85k forks source link

Support for opening in local players #806

Closed notpushkin closed 2 years ago

notpushkin commented 5 years ago

This should somewhat ease the load on Invidious instances (DASH videos can be played without proxying the streams) and keep power users / mpv fanatics (like me) happy. I'm not sure if it's that useful, just wanted to throw in an idea. What do you think?

My setup right now:

  1. A .desktop file registering a custom protocol, ytdl, and ```ini [Desktop Entry] Version=1.0 Type=Application Name=ytdl scheme handler NoDisplay=true Exec=bash -c 'mpv "${1#ytdl:}"' -- %u MimeType=x-scheme-handler/ytdl ``` For macOS, it would probably be a small helper application [bundle](http://hublog.hubmed.org/archives/001154.html), and on Windows we'll obviously go for [registry](https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/platform-apis/aa767914(v=vs.85)?redirectedfrom=MSDN).
  2. A userscript that replaces the player with a link to this custom protocol (e. g. https://invidio.us/watch?v=xxxxxxytdl:https://youtube.com/watch?v=xxxxxx).

randrej commented 4 years ago

Great idea + a sane solution. How come nobody else is interested?

elypter commented 4 years ago

sounds great. especially for older pcs that cannot run videos in the browser without framedrops.

this works on windows as well with a custom .reg file and you dont need a userscript if this is implemented by invidio.us

stale[bot] commented 3 years ago

This issue has been automatically marked as stale and will be closed in 30 days because it has not had recent activity and is much likely outdated. If you think this issue is still relevant and applicable, please let us know.

notpushkin commented 3 years ago

If you think this issue is still relevant and applicable, please let us know.

It is!

elypter commented 3 years ago

it's still a good and achievable idea

Mennaruuk commented 3 years ago

Absolutely, would love to play in MPV!

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale and will be closed in 30 days because it has not had recent activity and is much likely outdated. If you think this issue is still relevant and applicable, you just have to post a comment and it will be unmarked.

Mennaruuk commented 2 years ago

BUMP

unixfox commented 2 years ago

BUMP

This seems like a simple feature to implement. Would you be interested to contribute to invidious for adding this feature?

notpushkin commented 2 years ago

I've updated my proposal with a bit more vendor-neutral ytdl: protocol – this removes the connotations that it will only be used with Invidious or YouTube, and instead means something along the lines of "open this in any player that works with youtube-dl".

unixfox commented 2 years ago

Duplicate of https://github.com/iv-org/invidious/issues/2533