|
1 <!doctype html> |
|
2 <html> |
|
3 |
|
4 <head> |
|
5 <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> |
|
6 <title>Metadataplayer test with HTML5 / MP3 Audio</title> |
|
7 <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic' rel='stylesheet' type='text/css'> |
|
8 <link href='test.css' rel='stylesheet' type='text/css'> |
|
9 <script type="text/javascript" src="metadataplayer/LdtPlayer-core.js" type="text/javascript"></script> |
|
10 <script type="text/javascript" src="test-config.js" type="text/javascript"></script> |
|
11 </head> |
|
12 |
|
13 <body> |
|
14 <h1>Metadataplayer test with HTML5 / MP3 Audio (NOT SUPPORTED BY CHROME & FIREFOX)</h1> |
|
15 <div id="LdtPlayer"></div> |
|
16 <div id="AnnotationsListContainer"></div> |
|
17 <script type="text/javascript"> |
|
18 IriSP.jwplayer_swf_path = "player.swf"; |
|
19 IriSP.libFiles.defaultDir = "libs/"; |
|
20 IriSP.widgetsDir = "metadataplayer"; |
|
21 var _metadata = { |
|
22 url: 'json/ldt-ogv.json', |
|
23 format: 'ldt' |
|
24 }; |
|
25 var _config = { |
|
26 gui: { |
|
27 width : 620, |
|
28 container : 'LdtPlayer', |
|
29 default_options: { |
|
30 metadata: _metadata |
|
31 }, |
|
32 css : 'metadataplayer/LdtPlayer-core.css', |
|
33 widgets: [ |
|
34 { type: "Sparkline" }, |
|
35 { type: "Slider" }, |
|
36 { type: "Controller" }, |
|
37 { type: "Polemic" }, |
|
38 { type: "Segments" }, |
|
39 { type: "Slice" }, |
|
40 { type: "Arrow" }, |
|
41 { type: "Annotation" }, |
|
42 { type: "Tweet" }, |
|
43 { |
|
44 type: "Tagcloud", |
|
45 segment_annotation_type: "chap" |
|
46 }, |
|
47 { |
|
48 type: "AnnotationsList", |
|
49 container: "AnnotationsListContainer" |
|
50 } |
|
51 ] |
|
52 }, |
|
53 player:{ |
|
54 type:'html5-audio', |
|
55 video: 'wari_0710.mp3', |
|
56 live: true, |
|
57 height: 1, |
|
58 width: 1, |
|
59 } |
|
60 }; |
|
61 _myPlayer = new IriSP.Metadataplayer(_config, _metadata); |
|
62 </script> |
|
63 </body> |
|
64 </html> |