|
215
|
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"></script> |
|
|
19 |
<script src="../../res/js/jquery.min.js"></script> |
|
|
20 |
<script src="../../res/js/jquery.tools.min.js"></script> |
|
|
21 |
<script src="../../res/js/jquery-ui.min.js"></script> |
|
|
22 |
<div id="LdtPlayer"></div> |
|
|
23 |
|
|
|
24 |
<script type="text/javascript"> |
|
|
25 |
$(document).ready(function() { |
|
|
26 |
var config = { |
|
|
27 |
gui:{ |
|
|
28 |
width:650, |
|
|
29 |
height:1, |
|
|
30 |
mode:'video', |
|
|
31 |
container:'LdtPlayer', |
|
|
32 |
debug:true, |
|
|
33 |
css:'../../src/css/LdtPlayer.css', |
|
|
34 |
widgets : [{ |
|
|
35 |
type: "PlayerWidget", // please note that type refers directly to the constructor of the widget. |
|
|
36 |
mode: "radio", |
|
|
37 |
metadata:{ |
|
|
38 |
format:'cinelab', |
|
|
39 |
src:'../test.json', |
|
|
40 |
type:'json'} |
|
227
|
41 |
}, |
|
|
42 |
{type: "SliderWidget", |
|
|
43 |
metadata:{ |
|
|
44 |
format:'cinelab', |
|
|
45 |
src:'../test.json', |
|
|
46 |
type:'json'} |
|
|
47 |
}, |
|
|
48 |
]}, |
|
215
|
49 |
player:{ |
|
|
50 |
type:'html5', |
|
|
51 |
file:'../trailer.ogv', |
|
|
52 |
duration: 50} |
|
|
53 |
}; |
|
|
54 |
|
|
|
55 |
IriSP.loadLibs(IriSP.lib, config.gui.css, function() { |
|
|
56 |
var layoutManager = new IriSP.LayoutManager(config.gui.container); |
|
|
57 |
var pop = IriSP.configurePopcorn(layoutManager, config.player); |
|
|
58 |
|
|
|
59 |
var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); }); |
|
|
60 |
|
|
|
61 |
}); |
|
|
62 |
</script> |
|
|
63 |
|
|
|
64 |
</body> |
|
|
65 |
</html> |