3 |
3 |
4 <head> |
4 <head> |
5 <title>Metadataplayer - Polemic tweet integration test</title> |
5 <title>Metadataplayer - Polemic tweet integration test</title> |
6 </head> |
6 </head> |
7 |
7 |
8 <body> |
8 <body style="background: #000000; color: #ffffff;"> |
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 Integration test - ALLOCINE PLAYER |
12 Integration test - ALLOCINE PLAYER |
13 </div> |
13 </div> |
14 |
14 |
15 |
15 |
16 <!-- START Integration ###################################### --> |
16 <!-- START Integration ###################################### --> |
17 <!-- SIMPLE PLAYER EXPERIMENTATION --> |
17 <!-- SIMPLE PLAYER EXPERIMENTATION --> |
18 <script type="text/javascript" src="../../../build/LdtPlayer-release.js" type="text/javascript"></script> |
18 <script type="text/javascript" src="js/LdtPlayer-release.js" type="text/javascript"></script> |
19 |
19 |
20 <div id="video"></div> |
20 <div id="video"></div> |
21 <div id="LdtPlayer"></div> |
21 <div id="LdtPlayer"></div> |
22 <div id="Sparkline"></div> |
22 <div id="Sparkline"></div> |
23 <script type="text/javascript"> |
23 <script type="text/javascript"> |
24 var json_url = 'allocine_test/exemple_cinecast.json'; |
24 var json_url = 'allocine_test/exemple_cinecast.json'; |
25 |
25 |
26 IriSP.user = {name: 'awesome_user_name', avatar: 'allocine_test/avatar.png',}; |
26 IriSP.user = {name: 'awesome_user_name', avatar: 'allocine_test/avatar.png'}; |
27 IriSP.libdir = "js/libs/"; |
27 IriSP.libdir = "js/libs/"; |
28 IriSP.widgetsDefaults["createAnnotationWidget"] = {}; |
28 IriSP.widgetsDefaults["createAnnotationWidget"] = {}; |
29 IriSP.widgetsDefaults["createAnnotationWidget"].cinecast_version = true; |
29 IriSP.widgetsDefaults["createAnnotationWidget"].cinecast_version = true; |
|
30 IriSP.widgetsDefaults["createAnnotationWidget"].polemic_mode = false; |
30 IriSP.widgetsDefaults["createAnnotationWidget"].keywords = ["#allocine", "#vodkaster", "#universcine"]; |
31 IriSP.widgetsDefaults["createAnnotationWidget"].keywords = ["#allocine", "#vodkaster", "#universcine"]; |
31 IriSP.widgetsDefaults["createAnnotationWidget"].api_endpoint_template = "coucou/{{id}}.json"; |
32 IriSP.widgetsDefaults["createAnnotationWidget"].api_endpoint_template = "coucou/{{id}}.json"; |
32 IriSP.defaults.user = function(){ return IriSP.user; }; |
33 IriSP.defaults.user = function(){ return IriSP.user; }; |
33 |
34 |
34 var config = { |
35 var config = { |
35 gui:{ |
36 gui:{ |
36 width:650, |
37 width:650, |
37 height:2100, |
38 height:2100, |
38 container:'LdtPlayer', |
39 container:'LdtPlayer', |
39 css:'css/LdtPlayer.css', |
40 css:'css/LdtPlayer.css', |
40 widgets: [ |
41 default_options : { |
41 {type: "StackGraphWidget", |
42 metadata:{ |
42 tags : [ |
|
43 { |
|
44 "keywords" : [ "élève", "souleyman", "souleiman", "koumba", "kumba", "karl", "esmeralda" ], |
|
45 "description" : "Mentions des élèves", |
|
46 "color" : "#CE0A15", |
|
47 }, |
|
48 { |
|
49 "keywords" : [ "F.M", "françois" ], |
|
50 "description" : "Mentions de François", |
|
51 "color" : "#036AAE", |
|
52 }, |
|
53 { |
|
54 "keywords" : [ "plan", "pano", "caméra", "plongée" ], |
|
55 "description" : "Descriptions de plans", |
|
56 "color" : "#C5A62D", |
|
57 }, |
|
58 ], |
|
59 metadata:{ |
|
60 format:'cinelab', |
43 format:'cinelab', |
61 src: json_url, |
44 src: json_url, |
62 type:'json'}, |
45 type:'json'}, |
63 |
46 width: 640 |
|
47 }, |
|
48 widgets: [ |
|
49 {type: "StackGraphWidget", |
64 requires: [{ |
50 requires: [{ |
65 type: "TooltipWidget", |
51 type: "TooltipWidget", |
66 width: 180, |
52 width: 180, |
67 heigh: 160, |
53 heigh: 160, |
68 metadata : {type:'empty' |
54 metadata : {type:'empty' |
69 } |
55 } |
70 }], |
56 }], |
71 }, |
57 }, |
72 {type: "AnnotationsListWidget", |
58 {type: "AnnotationsListWidget", |
73 container: "AnnotationsListContainer", |
59 container: "AnnotationsListContainer"}, |
74 metadata:{ |
60 {type: "SliderWidget"}, |
75 format:'cinelab', |
|
76 src:json_url, |
|
77 type:'json'} |
|
78 }, |
|
79 {type: "SparklineWidget", |
|
80 width: 640, /* required for this widget */ |
|
81 height: 50, |
|
82 metadata:{ |
|
83 format:'cinelab', |
|
84 src:json_url, |
|
85 type:'json'} |
|
86 }, |
|
87 {type: "SliderWidget", |
|
88 metadata:{ |
|
89 format:'cinelab', |
|
90 src:json_url, |
|
91 type:'json'} |
|
92 }, |
|
93 {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget. |
61 {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget. |
94 mode: "radio", |
62 mode: "radio"}, |
95 metadata:{ |
63 {type: "ArrowWidget"}, |
96 format:'cinelab', |
64 {type: "TweetsWidget"}, |
97 src:json_url, |
65 {type: "createAnnotationWidget"} |
98 type:'json'} |
|
99 }, |
|
100 {type: "SegmentsWidget", |
|
101 metadata:{ |
|
102 format:'cinelab', |
|
103 src:json_url, |
|
104 type:'json'}, |
|
105 requires: [{ |
|
106 type: "TooltipWidget", |
|
107 width: 180, |
|
108 heigh: 160, |
|
109 metadata : { |
|
110 type:'empty' |
|
111 } |
|
112 }], |
|
113 }, |
|
114 {type: "ArrowWidget", |
|
115 metadata:{ |
|
116 format:'cinelab', |
|
117 src:json_url, |
|
118 type:'json'} |
|
119 }, |
|
120 {type: "TweetsWidget", |
|
121 metadata:{ |
|
122 format:'cinelab', |
|
123 src:json_url, |
|
124 type:'json'} |
|
125 }, |
|
126 {type: "createAnnotationWidget", |
|
127 metadata:{ |
|
128 format:'cinelab', |
|
129 src:json_url, |
|
130 type:'json'} |
|
131 } |
|
132 ] |
66 ] |
133 }, |
67 }, |
134 player:{ |
68 player:{ |
135 type:'allocine', // player type |
69 type:'allocine', // player type |
136 height: 300, |
70 height: 300, |
137 width: 640, |
71 width: 640, |
138 acPlayerUrl: "allocine_test/AcPlayer_v3.0.swf", |
72 acPlayerUrl: "allocine_test/AcPlayer_v3.0.swf", |
139 autoPlay: "true", |
73 autoPlay: "false", |
140 urlAcData: "allocine_test/data_cinecast.xml", |
74 urlAcData: "allocine_test/data_cinecast.xml" |
141 directVideoPath: "http://hd.fr.mediaplayer.allocine.fr/nmedia/18/86/23/92/19282986_fa3_vost_sd_001.flv" |
|
142 }, |
75 }, |
143 modules: [ |
76 modules: [ |
144 { type: "MediaFragment", |
77 { type: "MediaFragment", |
145 metadata:{ |
78 metadata:{ |
146 format:'cinelab', |
79 format:'cinelab', |