12 <body> |
12 <body> |
13 <h1>Metadataplayer test with JwPlayer</h1> |
13 <h1>Metadataplayer test with JwPlayer</h1> |
14 <div id="LdtPlayer"></div> |
14 <div id="LdtPlayer"></div> |
15 <div id="AnnotationsListContainer"></div> |
15 <div id="AnnotationsListContainer"></div> |
16 <script type="text/javascript"> |
16 <script type="text/javascript"> |
17 IriSP.jwplayer_swf_path = "player.swf"; |
17 IriSP.jwplayer_swf_path = "player.swf"; |
18 _myPlayer = testConfig('json/ldt-jwplayer.json', true); |
18 IriSP.libFiles.defaultDir = "libs/"; |
|
19 IriSP.widgetsDir = "metadataplayer"; |
|
20 var _metadata = { |
|
21 url: 'json/ldt-jwplayer.json', |
|
22 format: 'ldt' |
|
23 }; |
|
24 var _config = { |
|
25 gui: { |
|
26 width : 620, |
|
27 container : 'LdtPlayer', |
|
28 default_options: { |
|
29 metadata: _metadata |
|
30 }, |
|
31 css : 'metadataplayer/LdtPlayer-core.css', |
|
32 widgets: [ |
|
33 { type: "Sparkline" }, |
|
34 { type: "Slider" }, |
|
35 { type: "Controller" }, |
|
36 { type: "Polemic" }, |
|
37 { type: "Segments" }, |
|
38 { type: "Slice" }, |
|
39 { type: "Arrow" }, |
|
40 { type: "Annotation" }, |
|
41 /* { |
|
42 type: "CreateAnnotation", |
|
43 api_endpoint_template: "http://192.168.56.101/pf/ldtplatform/api/ldt/annotations/{{id}}}.json", |
|
44 creator_name: "Metadataplayer" |
|
45 }, */ |
|
46 { type: "Tweet" }, |
|
47 { |
|
48 type: "Tagcloud", |
|
49 segment_annotation_type: "chap" |
|
50 }, |
|
51 { |
|
52 type: "AnnotationsList", |
|
53 container: "AnnotationsListContainer" |
|
54 }, |
|
55 { type: "Mediafragment"} |
|
56 ] |
|
57 }, |
|
58 player:{ |
|
59 type:'auto', |
|
60 live: true, |
|
61 height: 350, |
|
62 width: 620, |
|
63 provider: "rtmp", |
|
64 autostart: true |
|
65 } |
|
66 }; |
|
67 |
|
68 _myPlayer = new IriSP.Metadataplayer(_config, _metadata); |
|
69 |
19 </script> |
70 </script> |
20 </body> |
71 </body> |
21 </html> |
72 </html> |