| author | hamidouk |
| Wed, 26 Oct 2011 11:32:21 +0200 | |
| branch | popcorn-port |
| changeset 147 | 955119f901b4 |
| parent 141 | becd5f52fa24 |
| child 158 | 1813e6e4f0d6 |
| permissions | -rw-r--r-- |
| 135 | 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> |
|
|
141
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
5 |
<title>Test d'intégration de l'initialisation</title> |
| 135 | 6 |
</head> |
7 |
||
8 |
<body> |
|
9 |
||
10 |
<div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial', 'Verdana', 'sans-serif';"> |
|
11 |
<h1>MetaDataPlayer </h1> |
|
|
141
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
12 |
Test d'intégration de l'initialisation. |
| 135 | 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> |
|
|
141
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
19 |
<script type="text/javascript" src="../../unittests/mockSerializer.js" type="text/javascript"></script> |
| 135 | 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:480, |
|
33 |
container:'LdtPlayer', |
|
34 |
css:'../../src/css/LdtPlayer.css', |
|
|
141
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
35 |
widgets: [ |
|
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
36 |
{type: "PlayerWidget", // please note that type refers directly to the constructor of the widget. |
|
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
37 |
mode: "radio", |
|
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
38 |
metadata:{ |
|
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
39 |
format:'cinelab', |
|
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
40 |
src:'../test.json', |
|
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
41 |
type:'json'} |
|
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
42 |
}, |
|
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
43 |
|
|
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
44 |
{type: "SegmentsWidget", |
|
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
45 |
metadata:{ |
|
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
46 |
format:'cinelab', |
|
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
47 |
src:'../test.json', |
|
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
48 |
type:'json'} |
|
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
49 |
}, |
|
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
50 |
{type: "AnnotationsWidget", |
|
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
51 |
metadata:{ |
|
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
52 |
format:'cinelab', |
|
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
53 |
src:'../test.json', |
|
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
54 |
type:'json'} |
|
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
55 |
} |
|
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
56 |
] |
|
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
57 |
}, |
| 135 | 58 |
player:{ |
59 |
type:'jwplayer', // player type |
|
|
141
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
60 |
container: 'PopcornContainer', |
| 135 | 61 |
// the rest is player-dependent configuration options. |
62 |
file : "video/franceculture/franceculture_retourdudimanche20100620.flv", |
|
63 |
streamer: "rtmp://media.iri.centrepompidou.fr/ddc_player/", |
|
64 |
flashplayer : '../libs/player.swf', |
|
65 |
live: true, |
|
66 |
"controlbar.position" : "none", |
|
67 |
height: 300, |
|
68 |
width: 200, |
|
69 |
provider: "rtmp" |
|
70 |
} |
|
71 |
}; |
|
72 |
|
|
|
141
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
73 |
IriSP.loadLibs(IriSP.lib, config.gui.css, |
|
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
74 |
function() { var pop = IriSP.configurePopcorn(config.player); |
|
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
75 |
var widgets = IriSP.configureWidgets(pop, config.gui); }); |
| 135 | 76 |
|
77 |
}); |
|
78 |
</script> |
|
79 |
||
80 |
||
81 |
</body> |
|
|
141
becd5f52fa24
this commit fixes an elusive integration bug where the object would get called
hamidouk
parents:
135
diff
changeset
|
82 |
<div id="PopcornContainer"></div> |
| 135 | 83 |
</html> |