test/spel-2.html
changeset 1076 510fd2a482f4
parent 1072 ac1eacb3aa33
equal deleted inserted replaced
1075:92cb33eb7a75 1076:510fd2a482f4
     1 <!doctype html>
     1 <!DOCTYPE html>
     2 <html>
     2 <html>
       
     3   <head>
       
     4     <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
       
     5     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
       
     6     <title>Tests Spectacle en ligne(s)</title>
       
     7     <link href="open-sans/css/fonts.css" rel="stylesheet" type="text/css" />
       
     8     <link href="test.css" rel="stylesheet" type="text/css" />
       
     9     <script
       
    10       type="text/javascript"
       
    11       src="metadataplayer/LdtPlayer-core.js"
       
    12     ></script>
       
    13     <script type="text/javascript" src="spel-serializer.js"></script>
       
    14   </head>
     3 
    15 
     4     <head>
    16   <body>
     5         <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    17     <section style="width: 1070px; margin: 0 auto">
     6         <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    18       <h1>Tests Spectacle en ligne(s)</h1>
     7         <title>Tests Spectacle en ligne(s)</title>
    19       <div id="LdtPlayer"></div>
     8         <link href='open-sans/css/fonts.css' rel='stylesheet' type='text/css'>
    20       <div id="AnnotationsListContainer"></div>
     9         <link href='test.css' rel='stylesheet' type='text/css'>
    21     </section>
    10         <script type="text/javascript" src="metadataplayer/LdtPlayer-core.js"></script>
    22     <script type="text/javascript">
    11         <script type="text/javascript" src="spel-serializer.js"></script>
    23       IriSP.widgetsDir = "metadataplayer";
    12     </head>
    24       var _metadata = {
    13 
    25         url: "json/extrait-celestins-paris.json",
    14     <body>
    26         format: "spel",
    15         <section style="width: 1070px; margin: 0 auto">
    27       };
    16             <h1>Tests Spectacle en ligne(s)</h1>
    28       var _config = {
    17             <div id="LdtPlayer"></div>
    29         width: 550,
    18             <div id="AnnotationsListContainer"></div>
    30         container: "LdtPlayer",
    19         </section>
    31         default_options: {
    20         <script type="text/javascript">
    32           metadata: _metadata,
    21 IriSP.libFiles.defaultDir = "libs/";
       
    22 IriSP.widgetsDir = "metadataplayer";
       
    23 var _metadata = {
       
    24     url: "json/extrait-celestins-paris.json",
       
    25     format: 'spel'
       
    26 };
       
    27 var _config = {
       
    28     width : 550,
       
    29     container : 'LdtPlayer',
       
    30     default_options: {
       
    31         metadata: _metadata
       
    32     },
       
    33     css : 'metadataplayer/LdtPlayer-core.css',
       
    34     widgets: [
       
    35         {
       
    36             type: "Title"
       
    37         },
    33         },
    38         {
    34         css: "metadataplayer/LdtPlayer-core.css",
       
    35         widgets: [
       
    36           {
       
    37             type: "Title",
       
    38           },
       
    39           {
    39             type: "JwpPlayer",
    40             type: "JwpPlayer",
    40             video: "rtmpt://sln8pxlnphabw.cloudfront.net/cfx/st/mp4:2013-09-11_11-00-57_extrait-celesti_8878b1/original_web_low.mp4",
    41             video:
    41             height: 320
    42               "rtmpt://sln8pxlnphabw.cloudfront.net/cfx/st/mp4:2013-09-11_11-00-57_extrait-celesti_8878b1/original_web_low.mp4",
    42         },
    43             height: 320,
    43         { type: "Slider" },
    44           },
    44         { type: "Controller" },
    45           { type: "Slider" },
    45         {
    46           { type: "Controller" },
       
    47           {
    46             type: "Segments",
    48             type: "Segments",
    47             annotation_type: ["performance","discussion"]
    49             annotation_type: ["performance", "discussion"],
    48         },
    50           },
    49         {
    51           {
    50             type: "Annotation",
    52             type: "Annotation",
    51             show_social: false,
    53             show_social: false,
    52             show_annotation_type: true,
    54             show_annotation_type: true,
    53             annotation_type: ["performance","discussion"]
    55             annotation_type: ["performance", "discussion"],
    54         },
    56           },
    55         {
    57           {
    56             type: "Polemic",
    58             type: "Polemic",
    57             annotation_type: "interpretation",
    59             annotation_type: "interpretation",
    58             polemics: [
    60             polemics: [
    59                 {
    61               {
    60                     keywords: [ "performance d'un(e) comédien(ne)" ],
    62                 keywords: ["performance d'un(e) comédien(ne)"],
    61                     color: "#c00000"
    63                 color: "#c00000",
    62                 },
    64               },
    63                 {
    65               {
    64                     keywords: [ "Interpétation alternative de mise en scène" ],
    66                 keywords: ["Interpétation alternative de mise en scène"],
    65                     color: "#008000"
    67                 color: "#008000",
    66                 },
    68               },
    67                 {
    69               {
    68                     keywords: [ "Intervention de la technique" ],
    70                 keywords: ["Intervention de la technique"],
    69                     color: "#0000f0"
    71                 color: "#0000f0",
    70                 },
    72               },
    71             ]
    73             ],
    72         },
    74           },
    73         {
    75           {
    74             type: "Annotation",
    76             type: "Annotation",
    75             annotation_type: "interpretation",
    77             annotation_type: "interpretation",
    76             show_social: false,
    78             show_social: false,
    77             arrow_position: 0
    79             arrow_position: 0,
    78         },
    80           },
    79         {
    81           {
    80             type: "SpelSyncHtml",
    82             type: "SpelSyncHtml",
    81             container: "AnnotationsListContainer",
    83             container: "AnnotationsListContainer",
    82             height: 600,
    84             height: 600,
    83             width: 500,
    85             width: 500,
    84             src: "ctb.html"
    86             src: "ctb.html",
    85         }
    87           },
    86     ]
    88         ],
    87 };
    89       };
    88 _myPlayer = new IriSP.Metadataplayer(_config);
    90       _myPlayer = new IriSP.Metadataplayer(_config);
    89         </script>
    91     </script>
    90     </body>
    92   </body>
    91 </html>
    93 </html>