Skip to content

No image and link for embedded video #374

@allefeld

Description

@allefeld

#226 (comment) says "only a picture gets included from the frame displayed when the page is exported". That would be sufficient for my purposes, if the picture would also be a clickable link to the video, but it doesn't work for me.

I have a Reveal JS presentation (generated by Quarto) with an embedded YouTube video. The embed code is similar to the code YT itself provides for embedding:

<iframe
  data-external="1"
  src="https://www.youtube.com/embed/2aO7CPLomb0?enablejsapi=1"
  width="1477"
  height="831"
  title="" frameborder="0"
  allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
  allowfullscreen="">
</iframe>

Viewing the HTML in a browser, a cover image is shown and clicking on it starts the video.

Image

When I convert this with decktape to pdf, I get a rectangular frame which contains the video title and the YT logo, but no video image and no link:

Image

Can this be fixed? Or do I have to use different embed code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions