forked from dreammmr/paper-video
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
113 lines (96 loc) · 3.11 KB
/
demo.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<html>
<head>
<title><paper-video> demo page</title>
<script src="../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="../paper-styles/typography.html">
<link rel="import" href="../paper-styles/color.html">
<link rel="import" href="../paper-material/paper-material.html">
<link rel="import" href="paper-video.html">
</head>
<body>
<style is="custom-style">
.paper-font-display1 {
font-weight: 300 !important;
color: teal;
margin: 20px;
@apply(--paper-font-display1);
}
.paper-font-headline {
@apply(--paper-font-headline);
}
.paper-font-title {
@apply(--paper-font-title);
}
.paper-font-subhead {
@apply(--paper-font-subhead);
}
.paper-font-button {
@apply(--paper-font-button);
color: teal;
}
paper-material {
min-height: 300px;
position: relative;
padding: 10px;
margin: 10px 0;
text-align: center;
}
paper-video.custom {
--paper-video-controls-background: var(--paper-blue-500);
--paper-video-controls-color: white;
--paper-video-slider-color: var(--paper-blue-700);
}
paper-fab-menu[position="vertical"] {
position: absolute;
right: 20px;
bottom: 20px;
}
paper-fab-menu[position="horizontal"] {
position: absolute;
right: 185px;
bottom: 20px;
}
.code-area pre {
position: relative;
left: 135px;
text-align: left;
}
</style>
<div class="paper-font-display1"><paper-video></div>
<paper-material elevation="1">
<div class="paper-font-button">Default mode (with controls, poster, autohide)</div>
<div class="code-area">
<pre>
<paper-video controls poster="demo.jpeg" src="demo.mp4" autohide-controls="1000"></paper-video>
</pre>
</div>
<paper-video controls poster="demo.jpeg" src="demo.mp4" autohide-controls="1000"></paper-video>
</paper-material>
<paper-material elevation="1">
<div class="paper-font-button">Custom mode (with controls, without poster, autohide disabled)</div>
<div class="code-area">
<pre>
<style is="custom-style">
	paper-video.custom {
		--paper-video-controls-background: var(--paper-blue-500);
		--paper-video-controls-color: white;
		--paper-video-slider-color: var(--paper-blue-700);
	}
</style>
<paper-video class="custom" controls src="demo.mp4" autohide-controls="0" ></paper-video>	
</pre>
</div>
<paper-video class="custom" controls src="demo.mp4" autohide-controls="0"></paper-video>
</paper-material>
<paper-material elevation="1">
<div class="paper-font-button">Default mode (without controls, without poster, with (loop, autoplay and muted))</div>
<div class="code-area">
<pre>
<paper-video loop autoplay muted src="demo.mp4"></paper-video>
</pre>
</div>
<paper-video loop autoplay muted src="demo.mp4"></paper-video>
</paper-material>
</body>
</html>