added new methods to README, as well as how to install this fork

This commit is contained in:
2020-10-01 12:46:33 +02:00
committed by GitHub
parent 203bd1b908
commit 4d3ddd2d4b

View File

@@ -9,23 +9,28 @@ The Youtube stuff comes from [HERE](https://developers.google.com/youtube/iframe
# How to use it ?
Just
```bash
npm install --save-dev @sveltecasts/svelte-youtube@0.0.5
Just add this to your dependencies in `package.json`:
```json
"svelte-youtube": "https://github.com/zevaverbach/svelte-youtube.git",
````
And in your Source Code under Script:
```
import Youtube from "@sveltecasts/svelte-youtube";
import Youtube from "svelte-youtube"
<Youtube videoId="..." />
```
## Methods
- `play()`
- `pause()`
- `paused()`
- `jumpTo(seconds)`
- `position()`
# Btw
# YouTube Video About Its Making
Here is a youtube video about this component: