| author | hamidouk |
| Mon, 16 Jan 2012 15:06:41 +0100 | |
| branch | popcorn-port |
| changeset 640 | a6b64eeeb76d |
| parent 504 | 02daece5dfda |
| child 744 | 76400fd4ce70 |
| permissions | -rw-r--r-- |
|
457
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
2 |
<html dir="ltr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml" lang="fr"> |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
3 |
|
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
4 |
<head> |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
5 |
|
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
6 |
</head> |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
7 |
|
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
8 |
<body> |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
9 |
|
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
10 |
<div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial', 'Verdana', 'sans-serif';"> |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
11 |
<h1>MetaDataPlayer </h1> |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
12 |
Test d'intégration du widget du player avec Popcorn (Youtube). |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
13 |
</div> |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
14 |
|
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
15 |
|
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
16 |
<!-- START Integration ###################################### --> |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
17 |
<!-- SIMPLE PLAYER EXPERIMENTATION --> |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
18 |
<script type="text/javascript" src="../../build/LdtPlayer-release.js"></script> |
| 504 | 19 |
|
|
457
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
20 |
<div id="LdtPlayer"></div> |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
21 |
|
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
22 |
<script type="text/javascript"> |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
23 |
var config = { |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
24 |
gui:{ |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
25 |
width:650, |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
26 |
height:2100, |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
27 |
container:'LdtPlayer', |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
28 |
css:'../../src/css/LdtPlayer.css', |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
29 |
widgets: [ |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
30 |
{type: "PlayerWidget", // please note that type refers directly to the constructor of the widget. |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
31 |
mode: "radio", |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
32 |
metadata:{ |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
33 |
format:'cinelab', |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
34 |
src:'../test.json', |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
35 |
type:'json'} |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
36 |
}, |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
37 |
{type: "SliderWidget", |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
38 |
metadata:{ |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
39 |
format:'cinelab', |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
40 |
src:'../test.json', |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
41 |
type:'json'} |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
42 |
}, |
| 504 | 43 |
|
|
457
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
44 |
{type: "SegmentsWidget", // please note that type refers directly to the constructor of the widget. |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
45 |
mode: "radio", |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
46 |
metadata:{ |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
47 |
format:'cinelab', |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
48 |
src:'../test.json', |
| 504 | 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', |
|
|
457
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
65 |
type:'json'} |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
66 |
}, |
| 504 | 67 |
|
|
457
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
68 |
{type: "AnnotationsWidget", // please note that type refers directly to the constructor of the widget. |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
69 |
mode: "radio", |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
70 |
metadata:{ |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
71 |
format:'cinelab', |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
72 |
src:'../test.json', |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
73 |
type:'json'} |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
74 |
}, |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
75 |
|
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
76 |
] |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
77 |
}, |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
78 |
player:{ |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
79 |
type:'youtube', // player type |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
80 |
// the rest is player-dependent configuration options. |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
81 |
video: "http://www.youtube.com/watch?v=rrkrvAUbU9Y", |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
82 |
height: 400, |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
83 |
width: 640, |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
84 |
provider: "rtmp" |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
85 |
} |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
86 |
}; |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
87 |
|
| 504 | 88 |
IriSP.loadLibs(IriSP.lib, config, '../test.json', |
|
457
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
89 |
function() { |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
90 |
var layoutManager = new IriSP.LayoutManager(config.gui.container); |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
91 |
var pop = IriSP.configurePopcorn(layoutManager, config.player); |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
92 |
|
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
93 |
var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); }); |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
94 |
</script> |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
95 |
<div id='Ldt-Root'> |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
96 |
<div id='Ldt-PlaceHolder'> |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
97 |
</div> |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
98 |
</div> |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
99 |
<!-- END ################ ###################################### --> |
|
fbcb991cc595
updated the integration tests and changed their line endings to unix.
hamidouk
parents:
227
diff
changeset
|
100 |
</body> |
| 215 | 101 |
</html> |