-
-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Labels
Description
Problem
I'd like to set video urls to peertube videos and get the same functionality as youtube:
- thumbnail
- embed
Solutions
Implementing this isn't as straightforward as youtube.
- Requires detecting peertube instances, either through a hardcoded list or by querying
/.well-known
or/api
- The thumbnail url can't be trivially derived from the video id. It requires a call to
/api/v1/videos/{id}
to getthumbnailPath
, which might have to be cached in the database to avoid calling the peertube API on every request. - There might be security implications stemming from embedding arbitrary pages. An instance whitelist might be safer.
Alternatives
...don't
Additional context
Package with a peertube video: https://content.luanti.org/packages/fgaz/last_login_signs/
Zughy