53 |
53 |
54 var _metadata = { |
54 var _metadata = { |
55 url: '<?php echo get_metadata_url($metadata_url) ?>?callback=?', |
55 url: '<?php echo get_metadata_url($metadata_url) ?>?callback=?', |
56 format: 'ldt' |
56 format: 'ldt' |
57 }; |
57 }; |
58 var _config = { |
58 var _config = { |
59 gui: { |
59 width: 630, |
60 width: 630, |
60 container: 'LdtPlayer', |
61 container: 'LdtPlayer', |
61 default_options: { |
62 default_options: { |
62 metadata: _metadata |
63 metadata: _metadata |
63 }, |
|
64 css:'<?php echo(registry_url('metadataplayer','css'));?>', |
|
65 widgets: [ |
|
66 { |
|
67 type: "JwpPlayer", |
|
68 live: true, |
|
69 height: 300, |
|
70 provider: "rtmp" |
64 }, |
71 }, |
65 css:'<?php echo(registry_url('metadataplayer','css'));?>', |
|
66 widgets: [ |
|
67 <?php if ($protocol_level > 1): ?> |
72 <?php if ($protocol_level > 1): ?> |
68 { |
73 { |
69 type: "Polemic" |
74 type: "Polemic" |
70 <?php if ($protocol_level < 3): ?> |
75 <?php if ($protocol_level < 3): ?> |
71 , |
76 , |
72 polemics: [] |
77 polemics: [] |
73 <?php endif; ?> |
78 <?php endif; ?> |
74 }, |
79 }, |
75 <?php endif; ?> |
80 <?php endif; ?> |
76 { type: "Slider" }, |
81 { type: "Slider" }, |
77 { |
82 { |
78 type: "Controller", |
83 type: "Controller", |
79 disable_annotate_btn: true |
84 disable_annotate_btn: true |
80 }, |
85 }, |
81 { |
86 { |
82 type: "Segments", |
87 type: "Segments", |
83 annotation_type: [ "chap", "découpage" ] |
88 annotation_type: [ "chap", "découpage" ] |
84 }, |
89 }, |
85 { type: "Arrow" }, |
90 { |
86 { |
91 type: "Annotation", |
87 type: "Annotation", |
92 annotation_type: [ "chap", "découpage" ] |
88 annotation_type: [ "chap", "découpage" ] |
93 }, |
89 }, |
94 { type: "Tweet" }, |
90 { type: "Tweet" }, |
95 { type: "Mediafragment"} |
91 { type: "Mediafragment"} |
96 ] |
92 ] |
|
93 }, |
|
94 player:{ |
|
95 type:'jwplayer', // player type |
|
96 live: true, |
|
97 height: 300, |
|
98 width: 630, |
|
99 provider: "rtmp", |
|
100 autostart: true, |
|
101 metadata: _metadata |
|
102 } |
|
103 }; |
97 }; |
104 </script> |
98 </script> |
105 <script type="text/javascript"> |
99 <script type="text/javascript"> |
106 var _gaq = _gaq || []; |
100 var _gaq = _gaq || []; |
107 _gaq.push(['_setAccount', 'UA-23581291-1']); |
101 _gaq.push(['_setAccount', 'UA-23581291-1']); |