diff --git a/docs/packages/player.mdx b/docs/packages/player.mdx index a94a587f870..add5ce3d898 100644 --- a/docs/packages/player.mdx +++ b/docs/packages/player.mdx @@ -47,7 +47,8 @@ Set `autoplay muted` only when playback should start without a user gesture. | Attribute | Type | Default | Description | | --------------- | ------- | ------- | --------------------------------------------------------- | -| `src` | string | — | URL or relative path to composition HTML | +| `src` | string | — | URL or relative path to composition HTML, or to a video file with `type` | +| `type` | string | — | A `video/...` type (e.g. `video/mp4`) plays `src` as a video file | | `srcdoc` | string | — | Composition HTML already available as a string | | `width` | number | 1920 | Native composition width used for aspect ratio | | `height` | number | 1080 | Native composition height used for aspect ratio | @@ -68,6 +69,10 @@ Player also accepts `shader-capture-scale` and `shader-loading` for previewing projects that use shader transitions. These are preview controls, not composition authoring attributes. +With a `video/...` `type`, `src` plays in a `