Installation
Install the component
Run the following command to install the component and its dependencies:
npx @motion-core/cli add video-playerImport the component
Import the component into your Svelte file:
import { VideoPlayer } from "$lib/motion-core";import { VideoPlayer } from "$lib/motion-core";Usage
Props
VideoPlayer
| Prop | Type | Default |
|---|---|---|
src | string | undefined |
poster | string | undefined |
autoplay | boolean | false |
muted | boolean | true |
loop | boolean | false |
class | string | "" |