logseq / logseq/logseq

youtube short embeds don't look and function well

Open
#6,307 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:type/enhancement
Dominant language
Clojure
Stars
45k
Forks
2.8k
Avg merge
1d 22h
Merged PRs (30d)
105

Description

What happened?

I wanted to embed a youtube short in a block, so i used the same {{video}} code as one does for regular videos.
However, unlike regular videos, it doesn't work quite right:

  • a bunch of other page content and videos appear
  • no way to control the playback (no pause, unpause, seek, or volume controls)
  • if you scroll down, then back up, the video doesn't render at all (but sound still plays)
Reproduce the Bug

Put this in a block:

{{video https://www.youtube.com/shorts/FYAdAI1NE28}}
Expected Behavior

similar experience as a regular youtube video

Screenshots

first view:

screenshot
after scrolling down in the video panel, then back up:

youtube-short-screen

Desktop Platform Information

Arch Linux 64 bit 5.18.16-arch1-1, App, 0.7.9

Mobile Platform Information

No response

Additional Context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from the {{video}} embed handling and reproduce the issue with https://www.youtube.com/shorts/FYAdAI1NE28 in a block. Compare the short's behavior with a regular YouTube video; done means the short renders after scrolling and provides normal playback controls without unrelated content or videos.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.