aboutsummaryrefslogtreecommitdiffstats
path: root/docs/index.youtube.html
blob: 42ba13934fd06a5fb35ced10282949fae539b4f2 (plain)
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
<!doctype html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>Plyr - A simple HTML5 media player</title>
        <meta name="description" content="A simple HTML5 media player with custom controls and WebVTT captions.">
        <meta name="author" content="Sam Potts">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <!-- Styles -->
        <link rel="stylesheet" href="../dist/plyr.css">

        <!-- Docs styles -->
        <link rel="stylesheet" href="dist/docs.css">
    </head>
    <body>
        <header>
            <h1>Plyr</h1>
            <p>A simple HTML5 media player with custom controls and WebVTT captions by <a href="https://twitter.com/sam_potts" target="_blank">@sam_potts</a></p>
            <ul class="actions">
                <li>
                    <a href="https://github.com/selz/plyr" target="_blank" class="btn btn-download">Download on GitHub</a>
                    <span class="btn-count js-stargazers-count">&hellip;</span>
                </li>
                <li>
                    <a href="https://twitter.com/intent/tweet?text=A+simple+HTML5+media+player+with+custom+controls+and+WebVTT+captions.&url=http%3A%2F%2Fplyr.io&via=Sam_Potts" target="_blank" class="btn btn-twitter js-popup" data-window-height="250" data-window-width="500">Tweet</a>
                    <span class="btn-count js-tweet-count">&hellip;</span>
                </li>
            </ul>
        </header>

        <main>
            <section class="example-video">
                <div class="player">
                    <div data-video-id="L1h9xxCU20g" data-type="youtube"></div>
                </div>
            </section>
        </main>

        <!-- Load SVG defs -->
        <!-- You should bundle all SVG/Icons into one file using a build tool such as gulp and svg store -->
        <script>
        (function(d, u){
            var a = new XMLHttpRequest(),
                b = d.body;

            // If proper CORS supported
            if("withCredentials" in a) {
                a.open("GET", u, true);
                a.send();
                a.onload = function(){
                    var c = d.createElement("div");
                    c.style.display="none";
                    c.innerHTML = a.responseText;
                    b.insertBefore(c, b.childNodes[0]);
                }
            }
        })(document, "../dist/sprite.svg");
        </script>

        <!-- Plyr core script -->
        <script src="../src/js/plyr.js"></script>
        <!--<script src="../dist/plyr.js"></script>-->

        <!-- Docs script -->
        <script src="dist/docs.js"></script>
    </body>
</html>