Wrapper for the standalone version of react-player.
npm i svelte-react-player
Enjoy:
<script>
import { Player } from 'svelte-react-player'
</script>
<Player url="https://www.youtube.com/watch?v=NduTgkntfT4" />
Prop | Description | Default |
---|---|---|
url | Video URL | '' |
fluid | Toggle fluid container | false |
config | Object of react-player props | {} |
npm run dev
will start a local dev server on localhost:5000
Navigate to http://localhost:5000/svelte-react-player
to see the docs.
Thanks to @svelte-docs!