aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/standalone/videos/test-embed.html
blob: 9e1d6fc612af0405a140295fafad9600cf7668e0 (plain) (blame)
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
<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
</head>
<body>
  <header>
    <div class="logo">
      <div class="icon">
        <img src="../../assets/images/logo.svg">
      </div>
      <div>
        PeerTube
      </div>
    </div>

    <div class="spacer"></div>
    <h1>Embed Playground</h1>
  </header>
  <main>
    <aside>
      <div id="host"></div>
    </aside>
    <div id="controls">
      <div>
        <button onclick="player.play()">Play</button>
        <button onclick="player.pause()">Pause</button>
        <button onclick="player.seek(parseInt(prompt('Enter position to seek to (in seconds)')))">Seek</button>
        <button onclick="player.setVolume(0)">Mute</button>
        <button onclick="player.setVolume(1)">Unmute</button>
      </div>
      <br/>

      <div id="options">
        <fieldset>
          <legend>Resolutions:</legend>
          <div id="resolution-list"></div>
          <br/>
        </fieldset>

        <fieldset>
          <legend>Captions:</legend>
          <div id="caption-list"></div>
          <br/>
        </fieldset>

        <fieldset>
          <legend>Rates:</legend>
          <div id="rate-list"></div>
        </fieldset>

        <fieldset>
          <legend>Volume</legend>
          <div id="volume"></div>
        </fieldset>
      </div>

    </div>
  </main>

  <!-- iframes are used dynamically -->
  <iframe hidden></iframe>
  <a hidden></a>
</body>
</html>