test/mashup/player-jwpmashup.htm
changeset 965 eadb7290c325
child 1076 510fd2a482f4
equal deleted inserted replaced
964:d7d56ea2d0a6 965:eadb7290c325
       
     1 <!doctype html>
       
     2 <html>
       
     3     <head>
       
     4         <title>Preuve de concept Mashup</title>
       
     5         <link rel="stylesheet" type="text/css" href="style.css" />
       
     6         <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
       
     7         <script type="text/javascript" src="../metadataplayer/LdtPlayer-core.js" type="text/javascript"></script>
       
     8     </head>
       
     9     <body>
       
    10         <div class="main-container">
       
    11             <div class="header">
       
    12                 <h1>Hash Cut #</h1>
       
    13             </div>
       
    14             <div class="steps">
       
    15                 <h2>Créer un Hash-cut en 3 étapes&nbsp;:</h2>
       
    16                 <div class="steps-frame">
       
    17                     <div class="step">
       
    18                         <div class="step-icon step-1"></div>
       
    19                         <div class="step-title">S'inscrire et<br />créer un projet</div>
       
    20                     </div>
       
    21                     <div class="step-separator"></div>
       
    22                     <div class="step">
       
    23                         <div class="step-icon step-2"></div>
       
    24                         <div class="step-title">Découper et<br />Assembler</div>
       
    25                     </div>
       
    26                     <div class="step-separator"></div>
       
    27                     <div class="step active">
       
    28                         <div class="step-icon step-3"></div>
       
    29                         <div class="step-title">Partager et<br />regarder&nbsp;!</div>
       
    30                     </div>
       
    31                 </div>
       
    32             </div>
       
    33             <div class="colgauche">
       
    34                 <h2>Mon HashCut, avec des instances de Jw Player</h2>
       
    35                 <hr />
       
    36                 <div id="LdtPlayer"></div>
       
    37             </div>
       
    38             <div class="coldroite">
       
    39                 <div id="mediaList"></div>
       
    40                 <h2>Annotations</h2>
       
    41                 <hr />
       
    42                 <div id="annotationList"></div>
       
    43             </div>
       
    44             <div class="footer">
       
    45                 <hr />
       
    46                 <p style="text-align: right;">&copy; IRI 2012</p>
       
    47             </div>
       
    48         </div>
       
    49     <script type="text/javascript">
       
    50     
       
    51 IriSP.libFiles.defaultDir = "../libs/";
       
    52 IriSP.widgetsDir = "../metadataplayer";
       
    53 IriSP.language = 'fr';
       
    54 var _metadata = {
       
    55     url: 'bab_files/mashup.json',
       
    56 //    url: 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/b2754186-a0c9-11e0-b8bd-00145ea49a02?callback=?',
       
    57 //    url: 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/5afd8bbe-9b75-11e1-9e5d-00145ea4a2be?callback=?'
       
    58     format: 'ldt'
       
    59 };
       
    60 var _config = {
       
    61     width : 630,
       
    62     container : 'LdtPlayer',
       
    63     default_options: {
       
    64         metadata: _metadata
       
    65     },
       
    66     css : '../metadataplayer/LdtPlayer-core.css',
       
    67     widgets: [
       
    68         {
       
    69             type: "MashupPlayer",
       
    70             player_type: "JwpPlayer",
       
    71             player_options: {
       
    72                 live: true,
       
    73                 provider: "rtmp",
       
    74                 streamer: function(_url) {
       
    75                     var _matches = _url.match(/^[^\/]+\/\/[^\/]+\/[^\/]+\//);
       
    76                     if (_matches) {
       
    77                         return _matches[0];
       
    78                     } else {
       
    79                         return _url;
       
    80                     }
       
    81                 }
       
    82             },
       
    83 //            split_screen: true
       
    84         },
       
    85         { type: "Slider" },
       
    86         { type: "Controller" },
       
    87         {
       
    88             type: "Segments",
       
    89             annotation_type: false
       
    90         },
       
    91         {
       
    92             type: "Annotation",
       
    93             annotation_type: false
       
    94         },
       
    95         {
       
    96             type: "Tagger",
       
    97             api_endpoint: "../post-test.php",
       
    98             tags: ["actif","amour","bonheur","captif","charité","désir","dieu","doute","famille","idéal","internationale","passif","patrie","peur","politique","président","spleen","travail"]
       
    99         },
       
   100         {
       
   101             type: "MediaList",
       
   102             container: "mediaList"
       
   103         },
       
   104         {
       
   105             type: "AnnotationsList",
       
   106             container: "annotationList",
       
   107             //ajax_url: "http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=?",
       
   108             //ajax_granularity: 30000,
       
   109             //limit_count: 3
       
   110         },
       
   111         { type: "Mediafragment" }
       
   112     ]
       
   113 };
       
   114 
       
   115 _myPlayer = new IriSP.Metadataplayer(_config);
       
   116 
       
   117     </script>
       
   118     </body>
       
   119 </html>