19 IriSP.widgetsDir = "metadataplayer"; |
19 IriSP.widgetsDir = "metadataplayer"; |
20 var _metadata = { |
20 var _metadata = { |
21 url: "json/ldt-ogv.json", |
21 url: "json/ldt-ogv.json", |
22 format: 'ldt' |
22 format: 'ldt' |
23 }; |
23 }; |
24 var _config = { |
24 var _config = { |
25 gui: { |
25 width : 620, |
26 width : 620, |
26 container : 'LdtPlayer', |
27 container : 'LdtPlayer', |
27 default_options: { |
28 default_options: { |
28 metadata: _metadata |
29 metadata: _metadata |
29 }, |
|
30 css : 'metadataplayer/LdtPlayer-core.css', |
|
31 widgets: [ |
|
32 { type: "PopcornPlayer" }, |
|
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 { type: "CreateAnnotation" }, |
|
42 { type: "Tweet" }, |
|
43 { type: "Tagcloud" }, |
|
44 { |
|
45 type: "AnnotationsList", |
|
46 container: "AnnotationsListContainer" |
30 }, |
47 }, |
31 css : 'metadataplayer/LdtPlayer-core.css', |
48 { type: "Mediafragment"} |
32 widgets: [ |
49 ] |
33 { type: "PopcornPlayer"}, |
|
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: "CreateAnnotation" }, |
|
43 { type: "Tweet" }, |
|
44 { type: "Tagcloud" }, |
|
45 { |
|
46 type: "AnnotationsList", |
|
47 container: "AnnotationsListContainer" |
|
48 }, |
|
49 { type: "Mediafragment"} |
|
50 ] |
|
51 }, |
|
52 player:{ |
|
53 type:'auto', |
|
54 live: true, |
|
55 height: 350, |
|
56 width: 620, |
|
57 provider: "rtmp", |
|
58 autostart: true, |
|
59 metadata: _metadata |
|
60 } |
|
61 }; |
50 }; |
62 _myPlayer = new IriSP.Metadataplayer(_config); |
51 _myPlayer = new IriSP.Metadataplayer(_config); |
63 </script> |
52 </script> |
64 </body> |
53 </body> |
65 </html> |
54 </html> |