| author | hamidouk |
| Tue, 08 Nov 2011 14:27:43 +0100 | |
| branch | popcorn-port |
| changeset 210 | 7ab4ff32a19d |
| parent 209 | 63501d879bce |
| permissions | -rw-r--r-- |
| 86 | 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 (jwplayer). |
|
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 src="../../res/js/jquery.min.js" type="text/javascript"></script> |
|
20 |
<script src="../../res/js/jquery.tools.min.js" type="text/javascript"></script> |
|
21 |
<script src="../../res/js/jquery-ui.min.js" type="text/javascript"></script> |
|
22 |
||
23 |
<div id="video"></div> |
|
24 |
<div id="LdtPlayer"></div> |
|
25 |
||
26 |
<script type="text/javascript"> |
|
27 |
$(document).ready(function() { |
|
28 |
var config = { |
|
29 |
metadata:{ |
|
30 |
format:'cinelab', |
|
31 |
src:'test.json', |
|
32 |
load:'json'}, |
|
33 |
gui:{ |
|
34 |
width:650, |
|
35 |
height:1, |
|
36 |
mode:'video', |
|
37 |
container:'LdtPlayer', |
|
38 |
debug:true, |
|
39 |
css:'../../src/css/LdtPlayer.css'}, |
|
40 |
player:{ |
|
41 |
type:'jwplayer', |
|
42 |
src:'../libs/player.swf'} |
|
43 |
}; |
|
| 181 | 44 |
var config = { |
45 |
gui:{ |
|
46 |
width:650, |
|
47 |
height:2100, |
|
48 |
container:'LdtPlayer', |
|
49 |
css:'../../src/css/LdtPlayer.css', |
|
50 |
widgets: [ |
|
51 |
{type: "PlayerWidget", // please note that type refers directly to the constructor of the widget. |
|
52 |
mode: "radio", |
|
53 |
metadata:{ |
|
54 |
format:'cinelab', |
|
55 |
src:'../test.json', |
|
56 |
type:'json'} |
|
57 |
}, |
|
58 |
|
|
59 |
{type: "SegmentsWidget", // please note that type refers directly to the constructor of the widget. |
|
60 |
mode: "radio", |
|
61 |
metadata:{ |
|
62 |
format:'cinelab', |
|
63 |
src:'../test.json', |
|
64 |
type:'json'} |
|
65 |
}, |
|
66 |
|
|
67 |
{type: "AnnotationsWidget", // please note that type refers directly to the constructor of the widget. |
|
68 |
mode: "radio", |
|
69 |
metadata:{ |
|
70 |
format:'cinelab', |
|
71 |
src:'../test.json', |
|
72 |
type:'json'} |
|
73 |
}, |
|
74 |
|
|
75 |
] |
|
76 |
}, |
|
77 |
player:{ |
|
78 |
type:'jwplayer', // player type |
|
79 |
// the rest is player-dependent configuration options. |
|
80 |
file : "video/franceculture/franceculture_retourdudimanche20100620.flv", |
|
81 |
streamer: "rtmp://media.iri.centrepompidou.fr/ddc_player/", |
|
82 |
flashplayer : '../libs/player.swf', |
|
83 |
live: true, |
|
84 |
"controlbar.position" : "none", |
|
|
209
63501d879bce
fixing a couple of test files to follow the new api.
hamidouk
parents:
181
diff
changeset
|
85 |
height: 1, |
| 181 | 86 |
width: 640, |
87 |
provider: "rtmp" |
|
88 |
} |
|
89 |
}; |
|
| 86 | 90 |
|
| 181 | 91 |
IriSP.loadLibs(IriSP.lib, config.gui.css, |
92 |
function() { |
|
93 |
var layoutManager = new IriSP.LayoutManager(config.gui.container); |
|
94 |
var pop = IriSP.configurePopcorn(layoutManager, config.player); |
|
95 |
|
|
96 |
var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); }); |
|
97 |
|
|
98 |
}); |
|
| 86 | 99 |
</script> |
100 |
||
101 |
||
102 |
</body> |
|
103 |
</html> |