-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyoutube.html
47 lines (47 loc) · 954 Bytes
/
youtube.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<script>
var player;
function onYouTubeIframeAPIReady() {
player = new YT.Player("player", {
videoId: "VideoID",
playerVars: {
autoplay: 1,
rel: 0,
showinfo: 0,
modestbranding: 1,
playsinline: 1,
showinfo: 0,
rel: 0,
controls: 0,
color: "white",
loop: 1,
mute: 1,
// 'origin': 'https://meeranblog24x7.blogspot.com/'
},
events: {
onReady: onPlayerReady,
// 'onStateChange': onPlayerStateChange
},
});
}
function onPlayerReady(event) {
player.playVideo();
//player.mute();
}
</script>
</head>
<body>
<iframe
width="420"
height="315"
src="http://www.youtube.com/embed/
oHg5SJYRHA0"
frameborder="0"
></iframe>
</body>
</html>