Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions docs/authoring/videos.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,23 @@ For YouTube videos, you can specify a `start` option to indicate how many second
The `title` option adds a `title` attribute to the video `<iframe>`:

``` {.default shortcodes="false"}
{{< video https://www.youtube.com/embed/wo9vZccmqwc
title='What is the CERN?'
{{< video https://www.youtube.com/embed/wo9vZccmqwc
title='What is the CERN?'
>}}
```

### Accessibility Label

The `aria-label` option provides a custom accessibility label for screen readers. By default, embedded videos use the generic label "Video Player", but you can provide a more descriptive label:

``` {.default shortcodes="false"}
{{< video https://www.youtube.com/embed/wo9vZccmqwc
aria-label="Video demonstration of particle physics experiments at CERN"
>}}
```

This works with all video types including YouTube, Vimeo, Brightcove, and local video files.

## Revealjs {#revealjs}

You can include videos within [Revealjs](/docs/presentations/revealjs/index.qmd) presentations in one of two ways:
Expand Down
4 changes: 3 additions & 1 deletion docs/prerelease/1.9/_highlights.qmd
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
Quarto 1.9 includes the following new features:
Quarto 1.9 includes the following new features:

- [`aria-label` for videos](/docs/authoring/videos.qmd#accessibility-label): Improve accessibility of embedded videos by providing custom descriptive labels for screen readers instead of the default "Video Player" label.