|
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 <script type="text/javascript" src="../../unittests/mockSerializer.js" type="text/javascript"></script> |
|
20 <script src="../../res/js/jquery.min.js" type="text/javascript"></script> |
|
21 <script src="../../res/js/jquery.tools.min.js" type="text/javascript"></script> |
|
22 <script src="../../res/js/jquery-ui.min.js" type="text/javascript"></script> |
|
23 |
|
24 <div id="video"></div> |
|
25 <div id="LdtPlayer"></div> |
|
26 |
|
27 <script type="text/javascript"> |
|
28 $(document).ready(function() { |
|
29 var config = { |
|
30 gui:{ |
|
31 width:650, |
|
32 height:2100, |
|
33 container:'LdtPlayer', |
|
34 css:'../../src/css/LdtPlayer.css', |
|
35 widgets: [ |
|
36 {type: "PolemicWidget", |
|
37 width: 640, /* required for this widget */ |
|
38 height: 50, |
|
39 heightmax: 50, |
|
40 metadata:{ |
|
41 format:'cinelab', |
|
42 src:'polemic_fr.json', |
|
43 type:'json'}, |
|
44 |
|
45 requires: [{ |
|
46 type: "TooltipWidget", |
|
47 width: 180, |
|
48 heigh: 160, |
|
49 metadata : { |
|
50 format:'cinelab', |
|
51 src:'polemic.json', |
|
52 type:'empty' |
|
53 } |
|
54 }], |
|
55 }, |
|
56 {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget. |
|
57 mode: "radio", |
|
58 metadata:{ |
|
59 format:'cinelab', |
|
60 src:'polemic_fr.json', |
|
61 type:'json'} |
|
62 } |
|
63 |
|
64 ] |
|
65 }, |
|
66 player:{ |
|
67 type:'youtube', // player type |
|
68 // the rest is player-dependent configuration options. |
|
69 video: "http://www.youtube.com/watch?v=wZZ7oFKsKzY", |
|
70 height: 300, |
|
71 width: 640, |
|
72 } |
|
73 }; |
|
74 |
|
75 IriSP.loadLibs(IriSP.lib, config.gui.css, |
|
76 function() { |
|
77 var layoutManager = new IriSP.LayoutManager(config.gui.container); |
|
78 var pop = IriSP.configurePopcorn(layoutManager, config.player); |
|
79 |
|
80 var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); }); |
|
81 |
|
82 }); |
|
83 </script> |
|
84 |
|
85 |
|
86 </body> |
|
87 <div id="PopcornContainer"></div> |
|
88 </html> |