17 <div id="LatestAnnotation_container" style='max-width: 537px;'></div> |
17 <div id="LatestAnnotation_container" style='max-width: 537px;'></div> |
18 <div id="AnnotationsController_container" style='max-width: 537px;'></div> |
18 <div id="AnnotationsController_container" style='max-width: 537px;'></div> |
19 <div id="CreateAnnotation_container" style='max-width: 537px;'></div> |
19 <div id="CreateAnnotation_container" style='max-width: 537px;'></div> |
20 <div id="AnnotationsList_container" style='max-width: 537px;'></div> |
20 <div id="AnnotationsList_container" style='max-width: 537px;'></div> |
21 </div> |
21 </div> |
22 <script type="text/javascript" src='{% static "ldt/metadataplayer/LdtPlayer-core.js" %}'></script> |
22 <script type="text/javascript" src='{% static "remie/metadataplayer/LdtPlayer-core.js" %}'></script> |
23 <script type="text/javascript"> |
23 <script type="text/javascript"> |
24 |
24 |
25 if (typeof jQuery == "undefined") { |
25 if (typeof jQuery == "undefined") { |
26 jQuery = IriSP.jQuery; |
26 jQuery = IriSP.jQuery; |
27 } |
27 } |
28 var metadatas = {metadata: {url: "/ldt/cljson/id/{{project_id}}?from_display=false"}}; |
28 var metadatas = {metadata: {url: "/ldt/cljson/id/{{project_id}}?from_display=false"}}; |
29 var metadata_key = "metadata"; |
29 var metadata_key = "metadata"; |
30 |
30 |
31 IriSP.libFiles.defaultDir = '{% static "ldt/js/" %}'; |
31 IriSP.libFiles.defaultDir = '{% static "remie/js/" %}'; |
32 IriSP.libFiles.locations.jwPlayerSWF = '{% static "ldt/swf/player.swf" %}'; |
32 IriSP.libFiles.locations.jwPlayerSWF = '{% static "remie/swf/player.swf" %}'; |
33 IriSP.libFiles.locations.recordMicSwf = '{% static "ldt/swf/record_mic.swf" %}'; |
33 IriSP.libFiles.locations.recordMicSwf = '{% static "remie/swf/record_mic.swf" %}'; |
34 IriSP.libFiles.locations.zeroClipboardSwf = '{% static "ldt/swf/ZeroClipboard10.swf" %}'; |
34 IriSP.libFiles.locations.zeroClipboardSwf = '{% static "remie/swf/ZeroClipboard10.swf" %}'; |
35 IriSP.libFiles.locations.cssjQueryUI = '{% static "ldt/css/jq-css/themes/base/jquery-ui.css" %}'; |
35 IriSP.libFiles.locations.cssjQueryUI = '{% static "remie/css/jq-css/themes/base/jquery-ui.css" %}'; |
36 IriSP.language = 'fr-fr'; |
36 IriSP.language = 'fr-fr'; |
37 |
37 |
38 IriSP.widgetsDir = '{% static "ldt/metadataplayer" %}'; |
38 IriSP.widgetsDir = '{% static "remie/metadataplayer" %}'; |
39 var _metadata = { |
39 var _metadata = { |
40 url: metadatas[metadata_key].url, |
40 url: metadatas[metadata_key].url, |
41 format: 'ldt' |
41 format: 'ldt' |
42 }; |
42 }; |
43 var _config = { |
43 var _config = { |
44 container: 'player_container', |
44 container: 'player_container', |
45 css: '{% static "ldt/metadataplayer/LdtPlayer-core.css" %}', |
45 css: '{% static "remie/metadataplayer/LdtPlayer-core.css" %}', |
46 default_options: { |
46 default_options: { |
47 metadata: _metadata |
47 metadata: _metadata |
48 }, |
48 }, |
49 widgets: |
49 widgets: |
50 [ |
50 [ |
111 api_endpoint_template : "/api/ldt/1.0/annotations/", |
111 api_endpoint_template : "/api/ldt/1.0/annotations/", |
112 api_method : "POST", |
112 api_method : "POST", |
113 post_at_segment_time : true, |
113 post_at_segment_time : true, |
114 segments_annotation_type: "découpage", |
114 segments_annotation_type: "découpage", |
115 after_send_timeout : 0, |
115 after_send_timeout : 0, |
116 close_after_send: false, |
116 close_after_send: true, |
117 tag_prefix: "#", |
117 tag_prefix: "#", |
118 // Change id to a given project id |
118 // Change id to a given project id |
119 project_id: "{{project_id}}" |
119 project_id: "{{project_id}}" |
120 },{ |
120 },{ |
121 type: "AnnotationsList", |
121 type: "AnnotationsList", |