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;font-family: 'Trebuchet MS', 'Helvetica', 'Arial', 'Verdana', 'sans-serif';"> |
|
8 <h1>MetaDataPlayer</h1> |
|
9 Integration test - ALLOCINE PLAYER |
|
10 </div> |
|
11 <!-- START Integration ###################################### --> |
|
12 <!-- SIMPLE PLAYER EXPERIMENTATION --> |
|
13 <script type="text/javascript" src="/metadataplayer/build/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_url = 'allocine_test/bamako.json'; |
|
19 |
|
20 IriSP.user = { |
|
21 name : 'awesome_user_name', |
|
22 avatar : 'allocine_test/avatar.png' |
|
23 }; |
|
24 IriSP.libdir = "js/libs/"; |
|
25 IriSP.defaults.user = function() { |
|
26 return IriSP.user; |
|
27 }; |
|
28 var config = { |
|
29 gui : { |
|
30 width : 610, |
|
31 height : 900, |
|
32 container : 'LdtPlayer', |
|
33 css : 'css/LdtPlayer.css', |
|
34 default_options : { |
|
35 metadata : { |
|
36 format : 'cinelab', |
|
37 src : json_url, |
|
38 type : 'json' |
|
39 }, |
|
40 cinecast_version : true, |
|
41 width : 610 |
|
42 }, |
|
43 widgets : [{ |
|
44 type : "AnnotationsListWidget", |
|
45 container : "MyListContainer", |
|
46 ajax_mode : false |
|
47 }, { |
|
48 type : "SparklineWidget", |
|
49 height : 50, |
|
50 lineColor: "#ffffff", |
|
51 fillColor: "#999999" |
|
52 }, { |
|
53 type : "SegmentsWidget", |
|
54 requires : [{ |
|
55 type : "TooltipWidget", |
|
56 width : 180, |
|
57 height : 160, |
|
58 }] |
|
59 }, { |
|
60 type : "createAnnotationWidget", |
|
61 polemic_mode : false, |
|
62 remote_keywords : 'http://festival.cinecast.fr/configuration.jsonp?jsonp=?', |
|
63 random_keywords : 3, |
|
64 disable_share: true, |
|
65 api_endpoint_template : "coucou/{{id}}.json", |
|
66 api_method : 'POST' |
|
67 }, { |
|
68 type: "TraceWidget", |
|
69 // js_console : true, |
|
70 url: "http://traces.advene.org:5000/", |
|
71 requestmode: 'GET', |
|
72 syncmode: "sync" |
|
73 } ] |
|
74 }, |
|
75 player : { |
|
76 type : 'allocine', // player type |
|
77 height : 300, |
|
78 width : 610, |
|
79 acPlayerUrl : "allocine_test/AcPlayer_v3.0_new.swf", |
|
80 autoPlay : "true", |
|
81 urlAcData : "allocine_test/data_cinecast_new.xml" |
|
82 }, |
|
83 modules : [{ |
|
84 type : "MediaFragment", |
|
85 metadata : { |
|
86 format : 'cinelab', |
|
87 src : json_url, |
|
88 type : 'json' |
|
89 } |
|
90 }] |
|
91 |
|
92 }; |
|
93 |
|
94 IriSP.initPlayer(config, json_url); |
|
95 |
|
96 </script> |
|
97 <div id="MyListContainer" style="float: left; width: 400px;"></div> |
|
98 </body> |
|
99 </html> |
|