PageRenderTime 14ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 11ms app.codeStats 0ms

/temp/audiojs/demos/test4.html

https://github.com/wuxq/KitJs
HTML | 29 lines | 29 code | 0 blank | 0 comment | 0 complexity | cd47f1089a4c0c1224429bdb0c3bf2de MD5 | raw file
 1<!DOCTYPE html>
 2<html lang="en">
 3  <head>
 4    <meta charset="utf-8">
 5    <title>Test 4 - audio.js</title>
 6    <style>
 7      p { clear: both; }
 8    </style>
 9    <script src="../audiojs/audio.js"></script>
10    <script>
11      audiojs.events.ready(function() {
12        var as = audiojs.createAll();
13        as[1].load({
14          mp3: "http://s3.amazonaws.com/audiojs/02-juicy-r.mp3",
15          ogg: "http://s3.amazonaws.com/audiojs/02-juicy-r.ogg"
16        });
17      });
18    </script>
19  </head>
20  <body>
21    <h1>audiojs.create(element, settings)</h1>
22    <p>.ogg fallback</p>
23    <audio src="http://s3.amazonaws.com/audiojs/02-juicy-r.mp3" preload>
24      <source src="http://s3.amazonaws.com/audiojs/02-juicy-r.ogg">
25    </audio>
26    <p>Dynamically-loaded audio file with .ogg fallback</p>
27    <audio preload="none"></audio>
28  </body>
29</html>