--- 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);
+<?php if ($use_protocol): ?>
var _tracer = tracemanager.init_trace("test", {
url: "http://traces.advene.org:5000/",
requestmode: "GET",
@@ -119,6 +120,7 @@
protocol_level: <?php echo $protocol_level; ?>,
cookie: _cookie
});
+<?php endif; ?>
IriSP.libFiles.defaultDir = "<?php echo(registry_url('libdir','js'));?>";
IriSP.widgetsDir = "<?php echo(registry_url('ldtwidgets','js'));?>";
@@ -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:'<?php echo(registry_url('metadataplayer','css'));?>',
+ widgets: [
+ {
+ type: "JwpPlayer",
+ live: true,
+ height: 360,
+ width: 600,
+ provider: "rtmp",
+ autostart: true
},
- css:'<?php echo(registry_url('metadataplayer','css'));?>',
- widgets: [
<?php if ($protocol_level > 1): ?>
- {
- type: "Polemic"
+ {
+ type: "Polemic"
<?php if ($protocol_level < 3): ?>
- ,
- polemics: []
+ ,
+ polemics: []
<?php endif; ?>
- },
+ },
<?php endif; ?>
- { type: "Slider" },
- {
- type: "Controller",
- disable_annotate_btn: true
- },
+ { type: "Slider" },
+ {
+ type: "Controller",
+ disable_annotate_btn: true
+ },
<?php if ($protocol_level > 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" },
<?php if (!$use_protocol): ?>
- {
- type: "Tagcloud",
- container: "TagcloudContainer",
- exclude_pattern: /^@/,
- custom_stopwords: <?php echo json_encode(array($config['hashtag'])) ?>
- },
- {
- 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: <?php echo json_encode(array($config['hashtag'])) ?>
+ },
+ {
+ 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"
+ },
<?php endif; ?>
<?php endif; ?>
- { type: "Mediafragment"},
+ { type: "Mediafragment"},
<?php if ($use_protocol): ?>
- {
- 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
+ }
<?php endif; ?>
- ]
- },
- player:{
- type:'jwplayer', // player type
- live: true,
- height: 360,
- width: 600,
- provider: "rtmp",
- metadata: _metadata
- }
+ ]
};
-
jQuery(document).ready(function() {
<?php if ($show_splash): ?>