src/js/defaults.js
branchnew-model
changeset 872 d777d05a16e4
parent 870 2c025db10a10
child 874 38b65761a7d5
equal deleted inserted replaced
870:2c025db10a10 872:d777d05a16e4
   102         /* the platform generates some funky urls. We replace them afterwards to point to the
   102         /* the platform generates some funky urls. We replace them afterwards to point to the
   103          correct place - this setting will probably be overwritten by the platform
   103          correct place - this setting will probably be overwritten by the platform
   104          implementers.
   104          implementers.
   105          Note that the player has to replace the variables between {{ and }} by its own values.
   105          Note that the player has to replace the variables between {{ and }} by its own values.
   106          */
   106          */
   107         ajax_url : false, //platform_url + "/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}",
   107         ajax_url : false,
       
   108         /* URL when the annotations are to be reloaded from an LDT-like segment API
       
   109          * e.g. http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=?
       
   110          */
   108         ajax_granularity : 300000, /* how much ms should we look before and after the current timecode */
   111         ajax_granularity : 300000, /* how much ms should we look before and after the current timecode */
   109         default_thumbnail : "http://ldt.iri.centrepompidou.fr/static/site/ldt/css/imgs/video_sequence.png",
   112         default_thumbnail : "http://ldt.iri.centrepompidou.fr/static/site/ldt/css/imgs/video_sequence.png",
   110         project_url : "", //platform_url + "/ldtplatform/ldt/front/player/"
   113         foreign_url : "",
   111         /* the beginning of a link to the new front */
   114         /* URL when the annotation is not in the current project,
       
   115          * e.g. http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/{{media}}/{{project}}/{{annotationType}}#id={{annotation}}
       
   116          */
   112         cinecast_version : false,
   117         cinecast_version : false,
   113         annotation_type : false,
   118         annotation_type : false,
   114         refresh_interval : 300000,
   119         refresh_interval : 0,
   115         limit_count : 10,
   120         limit_count : 10,
   116         newest_first : false
   121         newest_first : false
   117     },
   122     },
   118     "StackGraphWidget" : {
   123     "StackGraphWidget" : {
   119          defaultcolor : "#585858",
   124         defaultcolor : "#585858",
   120          tags : [
   125         tags : [
   121             {
   126             {
   122                 "keywords" : [ "++" ],
   127                 "keywords" : [ "++" ],
   123                 "description" : "positif",
   128                 "description" : "positif",
   124                 "color" : "#1D973D"
   129                 "color" : "#1D973D"
   125             },
   130             },
   138                 "description" : "question",
   143                 "description" : "question",
   139                 "color" : "#036AAE"
   144                 "color" : "#036AAE"
   140             }
   145             }
   141         ],
   146         ],
   142         streamgraph : false
   147         streamgraph : false
       
   148     },
       
   149     "PolemicNewWidget" : {
       
   150         element_width : 5,
       
   151         element_height : 5,
       
   152         annotation_type : "tweet",
       
   153         defaultcolor : "#585858",
       
   154         foundcolor : "#fc00ff",
       
   155         tags : [
       
   156             {
       
   157                 "keywords" : [ "++" ],
       
   158                 "description" : "positif",
       
   159                 "color" : "#1D973D"
       
   160             },
       
   161             {
       
   162                 "keywords" : [ "--" ],
       
   163                 "description" : "negatif",
       
   164                 "color" : "#CE0A15"
       
   165             },
       
   166             {
       
   167                 "keywords" : [ "==" ],
       
   168                 "description" : "reference",
       
   169                 "color" : "#C5A62D"  
       
   170             },
       
   171             {
       
   172                 "keywords" : [ "??" ],
       
   173                 "description" : "question",
       
   174                 "color" : "#036AAE"
       
   175             }
       
   176         ]
   143     }
   177     }
   144 }
   178 }