test/spel.htm
changeset 1076 510fd2a482f4
parent 1069 2409cb4cebaf
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/cinelab1.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/cinelab1.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-07-05_10-39-03_test-vecsys-fil_4f8a31/original_web_low.mp4",
    41             video:
    41             height: 320
    42               "rtmpt://sln8pxlnphabw.cloudfront.net/cfx/st/mp4:2013-07-05_10-39-03_test-vecsys-fil_4f8a31/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             only_allow_zero_duration_annotations: false,
    60             only_allow_zero_duration_annotations: false,
    59             polemics: [
    61             polemics: [
    60                 {
    62               {
    61                     keywords: [ "performance d'un(e) comédien(ne)" ],
    63                 keywords: ["performance d'un(e) comédien(ne)"],
    62                     color: "#c00000"
    64                 color: "#c00000",
    63                 },
    65               },
    64                 {
    66               {
    65                     keywords: [ "Interpétation alternative de mise en scène" ],
    67                 keywords: ["Interpétation alternative de mise en scène"],
    66                     color: "#008000"
    68                 color: "#008000",
    67                 },
    69               },
    68                 {
    70               {
    69                     keywords: [ "Intervention de la technique" ],
    71                 keywords: ["Intervention de la technique"],
    70                     color: "#0000f0"
    72                 color: "#0000f0",
    71                 },
    73               },
    72             ]
    74             ],
    73         },
    75           },
    74         {
    76           {
    75             type: "Annotation",
    77             type: "Annotation",
    76             annotation_type: "interpretation",
    78             annotation_type: "interpretation",
    77             show_social: false,
    79             show_social: false,
    78             arrow_position: 0
    80             arrow_position: 0,
    79         },
    81           },
    80         {
    82           {
    81             type: "SpelSyncHtml",
    83             type: "SpelSyncHtml",
    82             container: "AnnotationsListContainer",
    84             container: "AnnotationsListContainer",
    83             height: 600,
    85             height: 600,
    84             width: 500,
    86             width: 500,
    85             src: "ctb.html"
    87             src: "ctb.html",
    86         }
    88           },
    87     ]
    89         ],
    88 };
    90       };
    89 _myPlayer = new IriSP.Metadataplayer(_config);
    91       _myPlayer = new IriSP.Metadataplayer(_config);
    90         </script>
    92     </script>
    91     </body>
    93   </body>
    92 </html>
    94 </html>