forked from weboverhauls/accessible-html5-video-player
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.react.html
103 lines (84 loc) · 2.42 KB
/
index.react.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Accessible HTML5 Video Player(React Version)</title>
<meta name="description" content="Custom HTML5 video controls and WebVTT captions." />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- PX-VIDEO CSS -->
<link rel="stylesheet" href="./css/px-video.css" />
<style>
/*** for demo only ***/
#wrapper {
width: 640px;
margin: 1em auto;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
#brand a,
p a {
border: 1px #fff dotted;
}
#brand a:focus,
p a:focus {
border: 1px #999 dotted;
outline: none;
}
p {
padding-top: 1em;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="brand">
<a href="http://paypal.github.io/">
<img src="./images/PayPalOpenSourcecolor.svg" width="224" height="28" alt="PayPal open source" />
</a>
</div>
<h1>
<img
src="./images/logo-accessible-HTML5-video-player.svg"
width="30"
height="30"
alt="HTML5-video-player"
>Accessible HTML5 Video Player
</h1>
<div id="app"></div>
<p>
<a href="https://github.com/paypal/accessible-html5-video-player" target="_blank">GitHub Repo</a>
</p>
</div>
<!-- end page wrapper container -->
<script src="./js/strings.js"></script>
<script src="./js/px-video.js"></script>
<script src="https://unpkg.com/react@15.6.2/dist/react.min.js"></script>
<script src="https://unpkg.com/react-dom@15.6.2/dist/react-dom.min.js"></script>
<script src="https://unpkg.com/prop-types@15.6.0/prop-types.min.js"></script>
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
<script src="./js/pxvideo.react.js"></script>
<script type="text/babel">
ReactDOM.render(
<PXVideo
sources={[
"https://www.paypalobjects.com/webstatic/mktg/videos/PayPal_AustinSMB_baseline.mp4",
"https://www.paypalobjects.com/webstatic/mktg/videos/PayPal_AustinSMB_baseline.webm"
]}
caption={{
label: "English captions",
src: "media/captions_PayPal_Austin_en.vtt",
lang: "en",
default: true
}}
poster="./media/poster_PayPal_Austin2.jpg"
width="640"
height="360"
controls
id="myvid"
fallback
debug
/>,
document.getElementById("app")
);
</script>
</body>
</html>