diff -r ff11367d4955 -r e9400c80e1e4 web/polemicaltimeline.php --- a/web/polemicaltimeline.php Mon Oct 15 14:34:47 2012 +0200 +++ b/web/polemicaltimeline.php Tue Oct 02 14:40:14 2012 +0200 @@ -108,6 +108,7 @@ _cookiematches = document.cookie.match(/PHPSESSID=([A-Za-z0-9]+)/), _cookie = (_cookiematches && _cookiematches.length > 1 ? _cookiematches[1] : undefined); + var _tracer = tracemanager.init_trace("test", { url: "http://traces.advene.org:5000/", requestmode: "GET", @@ -119,6 +120,7 @@ protocol_level: , cookie: _cookie }); + IriSP.libFiles.defaultDir = ""; IriSP.widgetsDir = ""; @@ -129,81 +131,77 @@ url: metadatas[metadata_key].url + '?callback=?', format: 'ldt' }; - var _config = { - gui: { - width: 600, - height: 800, - container: 'LdtPlayer', - default_options: { - metadata: _metadata + var _config = { + width: 600, + height: 800, + container: 'LdtPlayer', + default_options: { + metadata: _metadata + }, + css:'', + widgets: [ + { + type: "JwpPlayer", + live: true, + height: 360, + width: 600, + provider: "rtmp", + autostart: true }, - css:'', - widgets: [ 1): ?> - { - type: "Polemic" + { + type: "Polemic" - , - polemics: [] + , + polemics: [] - }, + }, - { type: "Slider" }, - { - type: "Controller", - disable_annotate_btn: true - }, + { type: "Slider" }, + { + type: "Controller", + disable_annotate_btn: true + }, 1): ?> - { - type: "Segments", - annotation_type: [ "chap", "découpage" ] - }, - { type: "Arrow" }, - { - type: "Annotation", - annotation_type: [ "chap", "découpage" ] - }, - { type: "Tweet" }, + { + type: "Segments", + annotation_type: [ "chap", "découpage" ] + }, + { + type: "Annotation", + annotation_type: [ "chap", "découpage" ] + }, + { type: "Tweet" }, - { - type: "Tagcloud", - container: "TagcloudContainer", - exclude_pattern: /^@/, - custom_stopwords: - }, - { - type: "AnnotationsList", - //ajax_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=?", - //foreign_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/{{media}}/{{project}}/{{annotationType}}#id={{annotation}}", - container: "AnnotationsListContainer" - }, + { + type: "Tagcloud", + container: "TagcloudContainer", + exclude_pattern: /^@/, + custom_stopwords: + }, + { + type: "AnnotationsList", + //ajax_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=?", + //foreign_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/{{media}}/{{project}}/{{annotationType}}#id={{annotation}}", + container: "AnnotationsListContainer" + }, - { type: "Mediafragment"}, + { type: "Mediafragment"}, - { - type: "Trace", - tracer: _tracer, - extend: { - cookie: _cookie, - protocol_level: _protocol_level - }, - js_console: true - } + { + type: "Trace", + tracer: _tracer, + extend: { + cookie: _cookie, + protocol_level: _protocol_level + }, + js_console: true + } - ] - }, - player:{ - type:'jwplayer', // player type - live: true, - height: 360, - width: 600, - provider: "rtmp", - metadata: _metadata - } + ] }; - jQuery(document).ready(function() {