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