test/integration/allocine_dossier_independant/polemic-allocine.htm
branchpopcorn-port
changeset 841 8da49ff273e0
parent 840 ac66e2240e1e
equal deleted inserted replaced
840:ac66e2240e1e 841:8da49ff273e0
    19 
    19 
    20             IriSP.user = {
    20             IriSP.user = {
    21                 name : 'awesome_user_name',
    21                 name : 'awesome_user_name',
    22                 avatar : 'allocine_test/avatar.png'
    22                 avatar : 'allocine_test/avatar.png'
    23             };
    23             };
    24             IriSP.libdir = "/metadataplayer/src/js/libs/";
    24             IriSP.libdir = "js/libs/";
    25             IriSP.defaults.user = function() {
    25             IriSP.defaults.user = function() {
    26                 return IriSP.user;
    26                 return IriSP.user;
    27             };
    27             };
    28             var config = {
    28             var config = {
    29                 gui : {
    29                 gui : {
    48                         type : "SparklineWidget",
    48                         type : "SparklineWidget",
    49                         height : 50,
    49                         height : 50,
    50                         lineColor: "#ffffff",
    50                         lineColor: "#ffffff",
    51                         fillColor: "#999999"
    51                         fillColor: "#999999"
    52                     }, {
    52                     }, {
    53                         type : "SliderWidget"
       
    54                     }, {
       
    55                         type : "PlayerWidget",
       
    56                         disable_annotate_btn : true,
       
    57                         disable_search_btn : true
       
    58                     }, {
       
    59                         type : "SegmentsWidget",
    53                         type : "SegmentsWidget",
    60                         requires : [{
    54                         requires : [{
    61                             type : "TooltipWidget",
    55                             type : "TooltipWidget",
    62                             width : 180,
    56                             width : 180,
    63                             height : 160,
    57                             height : 160,
    64                         }]
    58                         }]
    65                     }, {
    59                     }, {
    66                         type : "createAnnotationWidget",
    60                         type : "createAnnotationWidget",
    67                         polemic_mode : false,
    61                         polemic_mode : false,
    68                         keywords : ['#vodkaster', '#allocine', '#universcine', '#FauxRaccord', '#SceneCulte', '#navet'],
    62                         remote_keywords : 'http://festival.cinecast.fr/configuration.jsonp?jsonp=?',
       
    63                         random_keywords : 3,
       
    64                         disable_share: true,
    69                         api_endpoint_template : "coucou/{{id}}.json",
    65                         api_endpoint_template : "coucou/{{id}}.json",
    70                         api_method : 'POST'
    66                         api_method : 'POST'
    71                     }, {
    67                     }, {
    72                         type: "TraceWidget",
    68                         type: "TraceWidget",
    73                         url: "http://192.168.56.101:5000/",
    69                      //   js_console : true,
       
    70                         url: "http://traces.advene.org:5000/",
    74                         requestmode: 'GET',
    71                         requestmode: 'GET',
    75                         syncmode: "sync"
    72                         syncmode: "sync"
    76                     }]
    73                     } ]
    77                 },
    74                 },
    78                 player : {
    75                 player : {
    79                     type : 'allocine', // player type
    76                     type : 'allocine', // player type
    80                     height : 300,
    77                     height : 300,
    81                     width : 610,
    78                     width : 610,
    82                     acPlayerUrl : "allocine_test/AcPlayer_v3.0.swf",
    79                     acPlayerUrl : "allocine_test/AcPlayer_v3.0_new.swf",
    83                     autoPlay : "false",
    80                     autoPlay : "true",
    84                     urlAcData : "allocine_test/data_cinecast.xml"
    81                     urlAcData : "allocine_test/data_cinecast_new.xml"
    85                 },
    82                 },
    86                 modules : [{
    83                 modules : [{
    87                     type : "MediaFragment",
    84                     type : "MediaFragment",
    88                     metadata : {
    85                     metadata : {
    89                         format : 'cinelab',
    86                         format : 'cinelab',