# Video (H5P.Video)

A video player, a part other content holds: in a page, a book, a slide or a scenario. Not a content type on its own; Interactive Video is the one with questions over a video.

- `sources` is the video: a file beside the source (`.mp4`, `.webm`), a web address of one, or the address of a video on YouTube, Vimeo, Panopto or Echo360, which plays from there and shares the viewing with that site.
- Captions: `a11y`, `[{ "label": "English", "kind": "captions", "srcLang": "en", "track": { "path": "captions.vtt" } }]`.

## Example

```json
{
  "type": "H5P.Column",
  "params": {
    "content": [
      { "content": { "library": "H5P.Video", "params": { "sources": [{ "path": "clip.mp4" }], "a11y": [{ "label": "English", "kind": "captions", "srcLang": "en", "track": { "path": "captions.vtt" } }] } } }
    ]
  }
}
```

<!-- Generated by `h5p-author schema --markdown` from the pinned pack. Do not edit by hand. -->

## Fields of H5P.Video 1.6

- `sources` video files, required — Video sources
- `visuals` group — Visuals
  - `poster` image file, required — Poster image
  - `fit` boolean = true — Fit video player to use all available space
  - `controls` boolean = true — Show video player controls
- `playback` group — Playback
  - `autoplay` boolean = false — Auto-play video
  - `loop` boolean = false — Loop video
  - `hasNoAutoPause` boolean = false — Deactivate auto-pause
- `a11y` list of — Accessibility
  - `label` text — Track label
  - `kind` one of "subtitles" | "captions" | "descriptions" | "chapters" = "descriptions" — Type kind, refer to HTML living standard
  - `srcLang` text = "en" — Source language, must be defined for subtitles: Must be a valid BCP 47 language tag. If the kind attribute is set to subtitles, then srclang must be defined.
  - `track` file, required — Track file (WebVTT)

13 interface texts are left out: they come from the libraries' translations. `h5p-author schema H5P.Video --all` lists them, for a source to set one.

<!-- End of the generated section. -->
