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"> |
|
3 <head> |
|
4 <title>Metadataplayer - Polemic tweet integration test</title> |
|
5 </head> |
|
6 <body style="background: #222222; color: #ff00ff;"> |
|
7 <div style="width:650px;"> |
|
8 <h1>MetaDataPlayer</h1> |
|
9 Integration test - ALLOCINE PLAYER |
|
10 </div> |
|
11 <!-- START Integration ###################################### --> |
|
12 <!-- SIMPLE PLAYER EXPERIMENTATION --> |
|
13 <script type="text/javascript" src="js/LdtPlayer-release.js" type="text/javascript"></script> |
|
14 <div id="video"></div> |
|
15 <div id="LdtPlayer" style="float: left;"></div> |
|
16 <div id="Sparkline"></div> |
|
17 <script type="text/javascript"> |
|
18 var json_urls = { |
|
19 'media' : 'json_examples/media.json', // http://cinecastdev.vodkaster.com/api/medias/cinecast-bamako/ |
|
20 'extracts' : 'json_examples/extracts.json', // http://cinecastdev.vodkaster.com/api/medias/cinecast-bamako/extracts |
|
21 'annotations' : 'json_examples/annotations.json' // http://cinecastdev.vodkaster.com/api/medias/cinecast-bamako/annotations |
|
22 } |
|
23 |
|
24 IriSP.user = { |
|
25 name : 'awesome_user_name', |
|
26 avatar : 'allocine_test/avatar.png' |
|
27 }; |
|
28 IriSP.libFiles.defaultDir = "/metadataplayer/src/js/libs/"; |
|
29 |
|
30 var config = { |
|
31 gui : { |
|
32 width : 610, |
|
33 height : 900, |
|
34 container : 'LdtPlayer', |
|
35 css : 'css/LdtPlayer.css', |
|
36 default_options : { |
|
37 width: 610, |
|
38 cinecast_version: true, |
|
39 metadata : { |
|
40 format : 'cinelab', |
|
41 src : json_urls['annotations'], |
|
42 type : 'json' |
|
43 } |
|
44 }, |
|
45 widgets : [{ |
|
46 type : "AnnotationsListWidget", |
|
47 container : "MyListContainer", // div dans lequel sera affiché "Annotations Liées" |
|
48 ajax_mode : false, // nécessaire pour des raisons historiques |
|
49 refresh_interval : 15 *60 * 1000 // 15 minutes |
|
50 }, { |
|
51 type : "SparklineWidget", |
|
52 height : 50, |
|
53 lineColor: "#ffffff", |
|
54 fillColor: "#999999" |
|
55 }, { |
|
56 type : "SegmentsWidget", |
|
57 metadata : { |
|
58 format : 'cinelab', |
|
59 src : json_urls['extracts'], |
|
60 type : 'json' |
|
61 }, |
|
62 requires : [{ |
|
63 type : "TooltipWidget", |
|
64 width : 180, |
|
65 height : 160, |
|
66 }] |
|
67 }, { |
|
68 type : "createAnnotationWidget", |
|
69 polemic_mode : false, |
|
70 remote_tags : { |
|
71 id : "cinecast", |
|
72 url : "http://festival.cinecast.fr/configuration.json", |
|
73 alias : 'http://festival.cinecast.fr/configuration.jsonp?jsonp=?' |
|
74 }, |
|
75 random_tags : 3, |
|
76 disable_share: true, |
|
77 api_endpoint_template : "endpoint/{{id}}.json", |
|
78 api_method : 'POST' |
|
79 }, { |
|
80 type: "TraceWidget", |
|
81 // js_console : true, |
|
82 url: "http://traces.advene.org:5000/", |
|
83 requestmode: 'GET', |
|
84 syncmode: "sync" |
|
85 } ] |
|
86 }, |
|
87 player : { |
|
88 type : 'allocine', // player type |
|
89 height : 300, |
|
90 width : 610, |
|
91 acPlayerUrl : "allocine_test/AcPlayer_v3.0_new.swf", |
|
92 autoPlay : "true", |
|
93 urlAcData : "allocine_test/data_cinecast_new.xml" |
|
94 }, |
|
95 modules : [{ |
|
96 type : "MediaFragment", |
|
97 metadata : { |
|
98 format : 'cinelab', |
|
99 src : json_urls['media'], |
|
100 type : 'json' |
|
101 } |
|
102 }] |
|
103 |
|
104 }; |
|
105 |
|
106 IriSP.initPlayer(config, json_urls['media']); |
|
107 |
|
108 </script> |
|
109 <div id="MyListContainer" style="float: left; width: 400px;"></div> |
|
110 </body> |
|
111 </html> |
|