Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video shortcode "autoplay" should be at least an opt-in option #7905

Open
mcanouil opened this issue Dec 12, 2023 Discussed in #7889 · 4 comments
Open

Video shortcode "autoplay" should be at least an opt-in option #7905

mcanouil opened this issue Dec 12, 2023 Discussed in #7889 · 4 comments
Labels
enhancement New feature or request video
Milestone

Comments

@mcanouil
Copy link
Collaborator

mcanouil commented Dec 12, 2023

Some parts might be in Video.js but it is also hardcoded in the Lua shortcode code:

From what I gathered, it's mostly for YouTube/Vimeo videos.

Discussed in #7889

Originally posted by Nenuial December 12, 2023

Description

I'm including videos in my revealjs presentation like so :

![](path/to/video)

And I have the problem that the video autoplay in the presentation despite having set the YAML option auto-play-media: false under the revealjs key.

When I use the speaker notes I have the additional problem that the video plays in both speaker window and main window.

Any hints as to what I could try to avoid the videos starting automatically?

@mcanouil mcanouil added enhancement New feature or request video labels Dec 12, 2023
@mcanouil
Copy link
Collaborator Author

mcanouil commented Dec 12, 2023

Related in some aspects to:

@mcanouil
Copy link
Collaborator Author

mcanouil commented Dec 12, 2023

Hum, it's apparently now (1.4) handle by Video.js.
So I now wonder what's the exact case where the ifrane is built not by Video.js for Youtube/Vimeo videos.

---
title: "Quarto Playground"
format: html
---

{{< video https://vimeo.com/32001208 >}}

{{< video https://www.youtube.com/embed/wo9vZccmqwc >}}

This does not produce videos with autoplay.

@mcanouil mcanouil added question Further information is requested and removed enhancement New feature or request labels Dec 12, 2023
@cderv

This comment was marked as resolved.

@mcanouil
Copy link
Collaborator Author

I would suggest to take a deep look at the filter and possibly improve it to allow attributes in 1.5.

@cscheid cscheid added this to the v1.5 milestone Dec 13, 2023
@cscheid cscheid modified the milestones: v1.5, Future Feb 26, 2024
@mcanouil mcanouil added enhancement New feature or request and removed question Further information is requested labels Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request video
Projects
None yet
Development

No branches or pull requests

3 participants