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 |
|
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 du player avec Popcorn (Youtube). |
|
13 </div> |
|
14 |
|
15 |
|
16 <!-- START Integration ###################################### --> |
|
17 <!-- SIMPLE PLAYER EXPERIMENTATION --> |
|
18 <script type="text/javascript" src="../../build/LdtPlayer-release.js"></script> |
|
19 |
|
20 <div id="LdtPlayer"></div> |
|
21 |
|
22 <script type="text/javascript"> |
|
23 var config = { |
|
24 gui:{ |
|
25 width:650, |
|
26 height:2100, |
|
27 container:'LdtPlayer', |
|
28 css:'../../src/css/LdtPlayer.css', |
|
29 widgets: [ |
|
30 {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget. |
|
31 mode: "radio", |
|
32 metadata:{ |
|
33 format:'cinelab', |
|
34 src:'../test.json', |
|
35 type:'json'} |
|
36 }, |
|
37 {type: "SliderWidget", |
|
38 metadata:{ |
|
39 format:'cinelab', |
|
40 src:'../test.json', |
|
41 type:'json'} |
|
42 }, |
|
43 |
|
44 {type: "SegmentsWidget", // please note that type refers directly to the constructor of the widget. |
|
45 mode: "radio", |
|
46 metadata:{ |
|
47 format:'cinelab', |
|
48 src:'../test.json', |
|
49 type:'json'}, |
|
50 requires: [{ |
|
51 type: "TooltipWidget", |
|
52 width: 180, |
|
53 heigh: 160, |
|
54 metadata : { |
|
55 type:'empty' |
|
56 } |
|
57 }] |
|
58 }, |
|
59 |
|
60 {type: "ArrowWidget", // please note that type refers directly to the constructor of the widget. |
|
61 mode: "radio", |
|
62 metadata:{ |
|
63 format:'cinelab', |
|
64 src:'../test.json', |
|
65 type:'json'} |
|
66 }, |
|
67 |
|
68 {type: "AnnotationsWidget", // please note that type refers directly to the constructor of the widget. |
|
69 mode: "radio", |
|
70 metadata:{ |
|
71 format:'cinelab', |
|
72 src:'../test.json', |
|
73 type:'json'} |
|
74 }, |
|
75 |
|
76 ] |
|
77 }, |
|
78 player:{ |
|
79 type:'youtube', // player type |
|
80 // the rest is player-dependent configuration options. |
|
81 video: "http://www.youtube.com/watch?v=rrkrvAUbU9Y", |
|
82 height: 400, |
|
83 width: 640, |
|
84 provider: "rtmp" |
|
85 } |
|
86 }; |
|
87 |
|
88 IriSP.initPlayer(config, "../test.json"); |
|
89 |
|
90 </script> |
|
91 <div id='Ldt-Root'> |
|
92 <div id='Ldt-PlaceHolder'> |
|
93 </div> |
|
94 </div> |
|
95 <!-- END ################ ###################################### --> |
|
96 </body> |
|
97 </html> |
|