test/index.htm
branchnew-model
changeset 882 61c384dda19e
parent 880 4c7b33bf2795
equal deleted inserted replaced
881:f11b234497f7 882:61c384dda19e
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     2 <html dir="ltr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml" lang="fr">
     2 <html dir="ltr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml" lang="fr">
     3 
     3 
     4 <head>
     4 <head>
     5 
     5 <title>Metadataplayer - Polemic tweet integration test</title>
     6 </head>
     6 </head>
     7 
     7 
     8 <body>
     8 <body>
     9 
     9 
    10 	<div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial',  'Verdana', 'sans-serif';">
    10   <div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial',  'Verdana', 'sans-serif';">
    11 	<h1>MetaDataPlayer </h1>
    11   <h1>MetaDataPlayer</h1>
    12 	Iri MetaDataPlayer is a javascript's Widget interface to augment existing flash or html5 video player. 
    12   Polemic tweet integration test - using Popcorn, jwplayer and the <a href="http://polemictweet.com">PolemicTweet</a> widget.<br>
    13 	It's made to show time annotation and different metadata on video.
    13   </div>
    14 	To implement it on your website it's 's really simple.
    14   
    15 	You just need to insert a div and a script, like the exemple under this lines.<br/><br/>
    15   
    16 	This player was test on : firefox 3.6.9 / Chrome 6.0.472.55 / Safari 5.0.2 / Internet Explore 8<br/><br/>
       
    17 	This Player is a freeSoftware under <a href="http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html"> CeCILL-C</a> license.
       
    18 	This program is made by <a href="http://www.iri.centrepompidou.fr/" >Institut de recherche et d innovation</a>
       
    19 	more information on <a href="http://www.iri.centrepompidou.fr/outils/agmented-player/" >this page</a>.
       
    20 	</div>
       
    21 	
       
    22 	
       
    23  <!-- START Integration  ###################################### -->
    16  <!-- START Integration  ###################################### -->
    24  <!-- SIMPLE PLAYER EXPERIMENTATION -->
    17  <!-- SIMPLE PLAYER EXPERIMENTATION -->
    25 	<script type="text/javascript" src="../build/LdtPlayer-release.js"></script> 
    18   <script type="text/javascript" src="../build/LdtPlayer-core.js" type="text/javascript"></script>   
    26 	<div id="LdtPlayer"></div>
    19   
    27 	
    20   <div id="video"></div>
    28 	<script  type="text/javascript">	
    21   <div id="LdtPlayer"></div>
    29 		var config = {
    22   
    30 						metadata:{
    23   <script  type="text/javascript">
    31 							format:'cinelab',
    24   IriSP.libFiles.defaultDir = "../src/js/libs/";
    32 							src:'test.json',
    25   IriSP.widgetsDir = "../src/widgets"
    33 							load:'json'},
    26   IriSP.jwplayer_swf_path = "player.swf";
    34 						gui:{
    27     var _metadata = {
    35 							width:650,
    28         url: 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/13b0aa52-336b-11e0-b233-00145ea49a02?callback=?',
    36 							height:1,
    29         format: 'ldt'
    37 							mode:'radio',
    30     };
    38 							container:'LdtPlayer',
    31     var _config = {            
    39 							debug:true,
    32         gui: {
    40 							css:'../src/css/LdtPlayer.css'},
    33             width:620,
    41 						player:{
    34             height:800,
    42 							type:'jwplayer',
    35             container:'LdtPlayer',
    43 							src:'../res/swf/player.swf'}
    36 			default_options: {
    44 					};
    37 				metadata: _metadata
    45 		IriSP.init(config);     
    38 			},
    46 	</script>
    39             css:'../src/css/LdtPlayer-core.css',
    47 	
    40             widgets: [
    48 
    41                 { type: "Sparkline" },
    49 <!-- END  ################  ###################################### -->
    42                 { type: "Slider" },
       
    43                 { type: "Controller" },
       
    44                 { type: "Polemic" },
       
    45                 { type: "Segments" },
       
    46                 { type: "Slice" },
       
    47                 { type: "Arrow" },
       
    48                 { type: "Annotation" },
       
    49                 { type: "Tweet" },
       
    50                 { type: "Tagcloud" },
       
    51                 {
       
    52                     type: "AnnotationsList",
       
    53                     //ajax_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=?", 
       
    54                     //foreign_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/{{media}}/{{project}}/{{annotationType}}#id={{annotation}}",
       
    55                     container: "AnnotationsListContainer"
       
    56                 },
       
    57                 { type: "Mediafragment"},
       
    58 /*                {
       
    59                     type: "Trace",
       
    60                     js_console: true
       
    61                 }
       
    62 */            ]
       
    63         },
       
    64         player:{
       
    65             type:'jwplayer', // player type
       
    66             live: true, 
       
    67             height: 300, 
       
    68             width: 620, 
       
    69             provider: "rtmp" 
       
    70         }
       
    71     };
       
    72     
       
    73     var _myPlayer = new IriSP.Metadataplayer(_config, _metadata);
       
    74   </script>
       
    75   
       
    76   
    50  </body>
    77  </body>
       
    78  <div id="AnnotationsListContainer" style="position: absolute; width: 400px; left: 660px; top: 105px;"></div>
    51  </html>
    79  </html>