This repository has been archived by the owner on Jun 4, 2022. It is now read-only.
forked from kolber/audiojs
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
60 lines (55 loc) · 2.43 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>audio.js</title>
<script src="./audiojs/audio.min.js"></script>
<link rel="stylesheet" href="./includes/index.css" media="screen">
<script>
audiojs.events.ready(function() {
audiojs.createAll();
});
</script>
</head>
<body>
<header>
<h1>audio.js</h1>
</header>
<audio src="http://s3.amazonaws.com/audiojs/02-juicy-r.mp3" preload="auto"></audio>
<h3>Installation</h3>
<ol>
<li>
<p>Put <code>audio.js</code>, <code>player-graphics.gif</code> & <code>audiojs.swf</code> in the same folder.</p>
</li>
<li>
<p>Include audio.js:</p>
<pre><code><script src="/audiojs/audio.js"></script></code></pre>
</li>
<li>
<p>Initialise audio.js:</p>
<pre><code><script>
audiojs.events.ready(function() {
var as = audiojs.createAll();
});
</script></code></pre>
</li>
<li>
<p>Then you can use <code><audio></code> wherever you like in your HTML:</p>
<pre><code><audio src="/mp3/juicy.mp3" preload="auto" /></code></pre>
</li>
</ol>
<h3>Examples</h3>
<p>A series of API tests & examples for using and extending audio.js</p>
<p><em>Example 1</em> <a href="http://dotzero.github.com/audiojs/demos/test1.html">Test multiple load types</a></p>
<p><em>Example 2</em> <a href="http://dotzero.github.com/audiojs/demos/test2.html">Custom markup/css</a></p>
<p><em>Example 3</em> <a href="http://dotzero.github.com/audiojs/demos/test3.html">Multiple players, testing <code>preload</code>, <code>loop</code> & <code>autoplay</code> attributes</a></p>
<p><em>Example 4</em> <a href="http://dotzero.github.com/audiojs/demos/test5.html">Customised player</a></p>
<p><em>Example 5</em> <a href="http://dotzero.github.com/audiojs/demos/test6.html">Customised playlist player</a></p>
<h3>Source code</h3>
<p>All efforts have been made to keep the source as clean and readable as possible. Until we release more detailed documentation, the annotated source is the best reference for usage.</p>
<p><a href="http://dotzero.github.com/audiojs/docs/">Annotated source</a> / <a href="http://github.com/dotzero/audiojs">Source on Github</a></p>
<footer>
<p class="ab-c"><em>ℜ</em> Another <a href='http://ab-c.com.au'>ab+c</a> joint</p>
</footer>
</body>
</html>