| author | hamidouk |
| Tue, 08 Nov 2011 14:27:43 +0100 | |
| branch | popcorn-port |
| changeset 210 | 7ab4ff32a19d |
| parent 209 | 63501d879bce |
| permissions | -rw-r--r-- |
| 76 | 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> |
|
|
84
44ffcad678eb
changes to the integration testing file for html5 video.
hamidouk
parents:
76
diff
changeset
|
12 |
Test d'intégration du widget du player avec Popcorn (jwplayer). |
| 76 | 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 |
||
|
84
44ffcad678eb
changes to the integration testing file for html5 video.
hamidouk
parents:
76
diff
changeset
|
24 |
<script type="text/javascript"> |
|
44ffcad678eb
changes to the integration testing file for html5 video.
hamidouk
parents:
76
diff
changeset
|
25 |
$(document).ready(function() { |
|
209
63501d879bce
fixing a couple of test files to follow the new api.
hamidouk
parents:
88
diff
changeset
|
26 |
var config = { |
| 76 | 27 |
gui:{ |
28 |
width:650, |
|
29 |
height:1, |
|
|
209
63501d879bce
fixing a couple of test files to follow the new api.
hamidouk
parents:
88
diff
changeset
|
30 |
mode:'video', |
| 76 | 31 |
container:'LdtPlayer', |
32 |
debug:true, |
|
|
209
63501d879bce
fixing a couple of test files to follow the new api.
hamidouk
parents:
88
diff
changeset
|
33 |
css:'../../src/css/LdtPlayer.css', |
|
63501d879bce
fixing a couple of test files to follow the new api.
hamidouk
parents:
88
diff
changeset
|
34 |
widgets : [{ |
|
63501d879bce
fixing a couple of test files to follow the new api.
hamidouk
parents:
88
diff
changeset
|
35 |
type: "PlayerWidget", // please note that type refers directly to the constructor of the widget. |
|
63501d879bce
fixing a couple of test files to follow the new api.
hamidouk
parents:
88
diff
changeset
|
36 |
mode: "radio", |
|
63501d879bce
fixing a couple of test files to follow the new api.
hamidouk
parents:
88
diff
changeset
|
37 |
metadata:{ |
|
63501d879bce
fixing a couple of test files to follow the new api.
hamidouk
parents:
88
diff
changeset
|
38 |
format:'cinelab', |
|
63501d879bce
fixing a couple of test files to follow the new api.
hamidouk
parents:
88
diff
changeset
|
39 |
src:'../test.json', |
|
63501d879bce
fixing a couple of test files to follow the new api.
hamidouk
parents:
88
diff
changeset
|
40 |
type:'json'} |
|
63501d879bce
fixing a couple of test files to follow the new api.
hamidouk
parents:
88
diff
changeset
|
41 |
}]}, |
| 76 | 42 |
player:{ |
|
209
63501d879bce
fixing a couple of test files to follow the new api.
hamidouk
parents:
88
diff
changeset
|
43 |
type:'html5', |
|
63501d879bce
fixing a couple of test files to follow the new api.
hamidouk
parents:
88
diff
changeset
|
44 |
file:'../trailer.ogv', |
|
63501d879bce
fixing a couple of test files to follow the new api.
hamidouk
parents:
88
diff
changeset
|
45 |
duration: 50} |
| 76 | 46 |
}; |
47 |
|
|
|
209
63501d879bce
fixing a couple of test files to follow the new api.
hamidouk
parents:
88
diff
changeset
|
48 |
IriSP.loadLibs(IriSP.lib, config.gui.css, function() { |
|
63501d879bce
fixing a couple of test files to follow the new api.
hamidouk
parents:
88
diff
changeset
|
49 |
var layoutManager = new IriSP.LayoutManager(config.gui.container); |
|
63501d879bce
fixing a couple of test files to follow the new api.
hamidouk
parents:
88
diff
changeset
|
50 |
var pop = IriSP.configurePopcorn(layoutManager, config.player); |
|
63501d879bce
fixing a couple of test files to follow the new api.
hamidouk
parents:
88
diff
changeset
|
51 |
|
|
63501d879bce
fixing a couple of test files to follow the new api.
hamidouk
parents:
88
diff
changeset
|
52 |
var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); }); |
| 76 | 53 |
|
|
209
63501d879bce
fixing a couple of test files to follow the new api.
hamidouk
parents:
88
diff
changeset
|
54 |
}); |
|
63501d879bce
fixing a couple of test files to follow the new api.
hamidouk
parents:
88
diff
changeset
|
55 |
</script> |
|
63501d879bce
fixing a couple of test files to follow the new api.
hamidouk
parents:
88
diff
changeset
|
56 |
|
| 76 | 57 |
</body> |
58 |
</html> |