committed by
The Coding Aviator
parent
222948d5ac
commit
078e88fd45
@ -21,4 +21,22 @@ src="https://www.youtube.com/embed/v8kFT4I31es">
|
|||||||
</iframe>
|
</iframe>
|
||||||
```
|
```
|
||||||
|
|
||||||
Inserted values are recommended, and feel free to change them however you like.
|
#### Autoplay
|
||||||
|
What should we do if we would like to make this player starting automatically playing? Just add to your link value `?autoplay=1`. But be careful, because it can be annoying for a lot of people visiting your webpage.
|
||||||
|
|
||||||
|
```html
|
||||||
|
<iframe width="420" height="315"
|
||||||
|
src="https://www.youtube.com/watch?v=v8kFT4I31es?autoplay=1">
|
||||||
|
</iframe>
|
||||||
|
```
|
||||||
|
|
||||||
|
## YouTube Loop
|
||||||
|
|
||||||
|
Value 0 (default): The video will play only once.<br>
|
||||||
|
Value 1: The video will loop (forever).
|
||||||
|
|
||||||
|
```
|
||||||
|
<iframe width="420" height="315"
|
||||||
|
src="https://www.youtube.com/embed/tgbNymZ7vqY?playlist=tgbNymZ7vqY&loop=1">
|
||||||
|
</iframe>
|
||||||
|
```
|
||||||
|
Reference in New Issue
Block a user