Xyphyn / photon

A replacement for lemmy-ui with more features, a better design, and more customizability.
https://phtn.app
GNU Affero General Public License v3.0
349 stars 38 forks source link

Feature request: Recognize and embed more video links #367

Open sevonj opened 1 month ago

sevonj commented 1 month ago

...and probably a lot more I couldn't think of right now.

Xyphyn commented 1 month ago

The only issue with this is that I can't recognize every invidious/piped instance since they don't have a global url schema. I could just have a giant list of all the piped and invidious instances, or possibly add a button to tell photon to recognize that as an invidious instance.

sevonj commented 1 month ago

Yeah, I thought this might be the case for decentralized services.

If we can't somehow recognize the service, I guess it'll just be about managing known instances.

Edit: So is there any reasonable way to pull the info from html head since the link will be checked anyway for preview.

<meta property="og:platform" content="PeerTube">
sevonj commented 1 month ago

Not making a commit that touches YT regex again while the previous PR is up, but just adding the word live makes youtube streams work.

Example post: https://phtn.app/post/lemm.ee/37729007

sevonj commented 1 month ago

I'm adding Odysee to the list as I think it's the largest Youtube alternative out there.