-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
35 lines (31 loc) · 1.2 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Player Test</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<section class="examples">
<h1>Player embed example</h1>
<p>Each player can have it's own <code>URL</code> and live in its own separate instance.</p>
<h2>Player 1</h2>
<div class="my-player" data-player-url="https://sdk.streamrail.com/pepsi/cdn/0.0.1/2dca87e23ae7e73653a7ec03036bb6198462f73f/manifest.json"></div>
<h2>Player 2</h2>
<div class="my-player" data-player-url="https://sdk.streamrail.com/pepsi/cdn/0.0.1/2dca87e23ae7e73653a7ec03036bb6198462f73f/manifest.json"></div>
</section>
<section class="instructions">
<h1>Show me the codez</h1>
<h2>Add this code to the bottom of your page</h2>
<code>
<pre><script src="player.js"></script></pre>
</code>
<h2>Add this code anywhere you'd want a player</h2>
<code>
<pre><div class="my-player" data-player-url="sprite.json"></div></pre>
</code>
<p><i>Note:</i> You can use any class you like, just make sure you put the <code>data-player-url</code> attribute</p>
</section>
<script src="player.js"></script>
</body>
</html>