| author | hamidouk |
| Tue, 08 Nov 2011 10:53:21 +0100 | |
| branch | popcorn-port |
| changeset 208 | 49c7eec0955d |
| parent 193 | 336b6c88146c |
| child 213 | d65dafb9273d |
| permissions | -rw-r--r-- |
| 178 | 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> |
|
| 208 | 5 |
<title>Metadataplayer - Polemic tweet integration test</title> |
| 178 | 6 |
</head> |
7 |
||
8 |
<body> |
|
9 |
||
10 |
<div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial', 'Verdana', 'sans-serif';"> |
|
11 |
<h1>MetaDataPlayer </h1> |
|
| 208 | 12 |
Polemic tweet integration test<br> |
| 178 | 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', |
|
|
193
336b6c88146c
changed the data source from one widget in an example.
hamidouk
parents:
178
diff
changeset
|
60 |
src:'polemic_fr.json', |
| 178 | 61 |
type:'json'} |
62 |
} |
|
63 |
|
|
64 |
] |
|
65 |
}, |
|
66 |
player:{ |
|
67 |
type:'jwplayer', // player type |
|
68 |
container: 'PopcornContainer', |
|
69 |
// the rest is player-dependent configuration options. |
|
70 |
file : "video/ldtplatform/museologie_inaugurale_20111018_flat.f4v", |
|
71 |
streamer: "rtmp://media.iri.centrepompidou.fr/ddc_player/", |
|
72 |
flashplayer : '../libs/player.swf', |
|
73 |
live: true, |
|
74 |
"controlbar.position" : "none", |
|
75 |
height: 300, |
|
76 |
width: 640, |
|
77 |
provider: "rtmp" |
|
78 |
} |
|
79 |
}; |
|
80 |
|
|
81 |
IriSP.loadLibs(IriSP.lib, config.gui.css, |
|
82 |
function() { |
|
83 |
var layoutManager = new IriSP.LayoutManager(config.gui.container); |
|
84 |
var pop = IriSP.configurePopcorn(layoutManager, config.player); |
|
85 |
|
|
86 |
var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); }); |
|
87 |
|
|
88 |
}); |
|
89 |
</script> |
|
90 |
||
91 |
||
92 |
</body> |
|
93 |
<div id="PopcornContainer"></div> |
|
| 169 | 94 |
</html> |