Skip to content

Peertube support #590

@fgaz

Description

@fgaz

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 get thumbnailPath, 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/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions