File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -38,19 +38,21 @@ Please pass the ID of the video that you'd like to show.
3838### Props
3939
4040These are available props.
41- * ` player-width ` : ` String ` , default value is ` 640 `
42- * ` player-height ` : ` String ` , default value is ` 390 `
41+ * ` player-width ` : ` String ` or ` Number ` , default value is ` 640 `
42+ * ` player-height ` : ` String ` or ` Number ` , default value is ` 390 `
4343* ` player-vars ` : ` Object ` , default value is ` {start: 0, autoplay: 0} `
4444* ` video-id ` : ` String ` , ` required `
45+ * ` mute ` : ` Boolean ` default value is ` false `
4546
4647### Methods
4748These functions are the same as the original one.
4849* ` getIdFromURL `
4950* ` getTimeFromURL `
5051
5152``` js
52- let videoId = VueYouTubeEmbed .getIdFromURL (url)
53- let startTime = VueYouTubeEmbed .getTimeFromURL (url)
53+ import { getIdFromURL , getTimeFromURL } from ' vue-youtube-embed'
54+ let videoId = getIdFromURL (url)
55+ let startTime = getTimeFromURL (url)
5456```
5557
5658or
@@ -80,7 +82,7 @@ The first argument is an instance of `YT.Player`.
8082### The way of start playing video automatically
8183
8284``` html
83- <youtube :player-vars =" {autoplay: 1}" ></youtube >
85+ <youtube :player-vars =" { autoplay: 1 }" ></youtube >
8486```
8587
8688## Example on vue-play
You can’t perform that action at this time.
0 commit comments