Skip to content

Epic: Support embedded content #85

Open

Description

@NfNitLoop

This ticket is an "epic" encompassing work we'll probably break up into separate smaller tickets.

Users should be able to embed some content into their posts. For example:

  • Video file attachments.
  • Videos from sharing sites like YouTube or TikTok.
  • Audio files.

For safety reasons, the markdown renderer doesn't allow users to embed arbitrary HTML, so currently they're limited to image and links and can't embed things inline.

There are several different levels of support I could imagine us adding:

  1. Automatically embed attached video (& audio?) files. (simplest)
  2. Offer some way to embed links to external video.
    • Probably: some new protobuf data for embeddable links.
    • Simplest would to always put them at the end of a post, but could allow some special syntax for placing them?
    • Detect these kinds of URLs pasted into the markdown editor and "fix it up" into the right location?

As we implement different parts of this functionality, we should create separate tickets for those and link them here. Also, please feel free to comment with other use cases you think should be considered. :)

Activity

  1. NfNitLoop commented on May 1, 2022

    @NfNitLoop
    MemberAuthor

    Ah, right, another thing to think about:

    If we auto-embed content, maybe we'll want to add a new field to file attachments that can explicitly opt into/out-of this behavior? That can come much later, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions