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 |
|
4 <head> |
|
5 <title>Test d'intégration du widget Polemic Tweet</title> |
|
6 </head> |
|
7 |
|
8 <body> |
|
9 |
|
10 <div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial', 'Verdana', 'sans-serif';"> |
|
11 <h1>MetaDataPlayer </h1> |
|
12 Test d'intégration du widget polemic tweet. |
|
13 </div> |
|
14 |
|
15 |
|
16 <!-- START Integration ###################################### --> |
|
17 <!-- SIMPLE PLAYER EXPERIMENTATION --> |
|
18 <script type="text/javascript" src="../../build/LdtPlayer-release.js" type="text/javascript"></script> |
|
19 |
|
20 <div id="video"></div> |
|
21 <div id="LdtPlayer"></div> |
|
22 |
|
23 <script type="text/javascript"> |
|
24 var config = { |
|
25 gui:{ |
|
26 width:650, |
|
27 height:2100, |
|
28 container:'LdtPlayer', |
|
29 css:'../../src/css/LdtPlayer.css', |
|
30 widgets: [ |
|
31 {type: "PolemicWidget", |
|
32 width: 640, /* required for this widget */ |
|
33 height: 50, |
|
34 heightmax: 50, |
|
35 metadata:{ |
|
36 format:'cinelab', |
|
37 src:'polemic_fr.json', |
|
38 type:'json'}, |
|
39 |
|
40 requires: [{ |
|
41 type: "TooltipWidget", |
|
42 width: 180, |
|
43 heigh: 160, |
|
44 metadata : { |
|
45 format:'cinelab', |
|
46 src:'polemic_fr.json', |
|
47 type:'empty' |
|
48 } |
|
49 }], |
|
50 }, |
|
51 {type: "SliderWidget", |
|
52 metadata:{ |
|
53 format:'cinelab', |
|
54 src:'polemic_fr.json', |
|
55 type:'json'} |
|
56 }, |
|
57 {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget. |
|
58 mode: "radio", |
|
59 metadata:{ |
|
60 format:'cinelab', |
|
61 src:'polemic_fr.json', |
|
62 type:'json'} |
|
63 }, |
|
64 {type: "SegmentsWidget", |
|
65 metadata:{ |
|
66 format:'cinelab', |
|
67 src:'polemic_fr.json', |
|
68 type:'json'}, |
|
69 requires: [{ |
|
70 type: "TooltipWidget", |
|
71 width: 180, |
|
72 heigh: 160, |
|
73 metadata : { |
|
74 type:'empty' |
|
75 } |
|
76 }]}, |
|
77 |
|
78 {type: "ArrowWidget", |
|
79 metadata:{ |
|
80 format:'cinelab', |
|
81 src:'polemic_fr.json', |
|
82 type:'json'} |
|
83 }, |
|
84 {type: "AnnotationsWidget", |
|
85 metadata:{ |
|
86 format:'cinelab', |
|
87 src:'polemic_fr.json', |
|
88 type:'json'} |
|
89 }, |
|
90 {type: "TweetsWidget", |
|
91 metadata:{ |
|
92 format:'cinelab', |
|
93 src:'polemic_fr.json', |
|
94 type:'json'} |
|
95 } |
|
96 ] |
|
97 }, |
|
98 player:{ |
|
99 type:'dailymotion', // player type |
|
100 // the rest is player-dependent configuration options. |
|
101 video: "http://www.dailymotion.com/video/x9pjk9_video-detente-la-longue-route-2_videogames", |
|
102 height: 300, |
|
103 width: 640, |
|
104 } |
|
105 }; |
|
106 |
|
107 IriSP.initPlayer(config, "polemic_fr.json"); |
|
108 </script> |
|
109 |
|
110 |
|
111 </body> |
|
112 <div id="PopcornContainer"></div> |
|
113 </html> |
|