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_url = 'json_examples/movie32.json'; |
|
19 |
|
20 IriSP.user = { |
|
21 name : 'awesome_user_name', |
|
22 avatar : 'allocine_test/avatar.png' |
|
23 }; |
|
24 IriSP.libFiles.defaultDir = "/metadataplayer/src/js/libs/"; |
|
25 IriSP.language = 'fr'; |
|
26 var config = { |
|
27 gui : { |
|
28 width : 610, |
|
29 height : 900, |
|
30 container : 'LdtPlayer', |
|
31 css : 'css/LdtPlayer.css', |
|
32 default_options : { |
|
33 width: 610, |
|
34 cinecast_version: true, |
|
35 metadata : { |
|
36 format : 'cinelab', |
|
37 src : json_url, |
|
38 type : 'json' |
|
39 } |
|
40 }, |
|
41 widgets : [{ |
|
42 type : "AnnotationsListWidget", |
|
43 container : "MyListContainer", // div dans lequel sera affiché "Annotations Liées" |
|
44 ajax_mode : false, // nécessaire pour des raisons historiques |
|
45 refresh_interval : 15 * 60 * 1000 // 15 minutes |
|
46 }, { |
|
47 type : "SparklineWidget", |
|
48 height : 50, |
|
49 lineColor: "#ffffff", |
|
50 fillColor: "#999999" |
|
51 }, { |
|
52 type : "SegmentsWidget", |
|
53 requires : [{ |
|
54 type : "TooltipWidget", |
|
55 width : 180, |
|
56 height : 160, |
|
57 }] |
|
58 }, { |
|
59 type : "createAnnotationWidget", |
|
60 polemic_mode : false, |
|
61 remote_tags : { |
|
62 id : "cinecast", |
|
63 url : "http://festival.cinecast.fr/configuration.json", |
|
64 alias : 'http://festival.cinecast.fr/configuration.jsonp?jsonp=?' |
|
65 }, |
|
66 random_tags : 3, |
|
67 disable_share: true, |
|
68 api_endpoint_template : "json_examples/return_after_post.json", //"endpoint/{{id}}.json", |
|
69 api_method : 'POST' |
|
70 }, { |
|
71 type: "TraceWidget", |
|
72 js_console : true, |
|
73 url: "http://traces.advene.org:5000/", |
|
74 requestmode: 'GET', |
|
75 syncmode: "sync" |
|
76 } ] |
|
77 }, |
|
78 player : { |
|
79 type : 'allocine', // player type |
|
80 height : 300, |
|
81 width : 610, |
|
82 acPlayerUrl : "allocine_test/AcPlayer_v3.0_new.swf", |
|
83 autoPlay : "true", |
|
84 urlAcData : "allocine_test/data_cinecast_new.xml" |
|
85 }, |
|
86 modules : [{ |
|
87 type : "MediaFragment", |
|
88 metadata : { |
|
89 format : 'cinelab', |
|
90 src : json_url, |
|
91 type : 'json' |
|
92 } |
|
93 }] |
|
94 |
|
95 }; |
|
96 |
|
97 IriSP.initPlayer(config, json_url); |
|
98 |
|
99 </script> |
|
100 <div id="MyListContainer" style="float: left; width: 400px;"></div> |
|
101 </body> |
|
102 </html> |
|