| author | hamidouk |
| Wed, 26 Oct 2011 11:32:21 +0200 | |
| branch | popcorn-port |
| changeset 147 | 955119f901b4 |
| parent 88 | 4de2f474ca01 |
| child 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() { |
| 76 | 26 |
var config = { |
27 |
metadata:{ |
|
28 |
format:'cinelab', |
|
29 |
src:'test.json', |
|
30 |
load:'json'}, |
|
31 |
gui:{ |
|
32 |
width:650, |
|
33 |
height:1, |
|
34 |
mode:'radio', |
|
35 |
container:'LdtPlayer', |
|
36 |
debug:true, |
|
37 |
css:'../../src/css/LdtPlayer.css'}, |
|
38 |
player:{ |
|
39 |
type:'jwplayer', |
|
40 |
src:'../res/swf/player.swf'} |
|
41 |
}; |
|
42 |
|
|
43 |
IriSP.loadLibs(IriSP.lib, config.gui.css, function() {}); |
|
| 88 | 44 |
pop = Popcorn("#video"); |
| 76 | 45 |
dt = new IriSP.DataLoader(); |
|
84
44ffcad678eb
changes to the integration testing file for html5 video.
hamidouk
parents:
76
diff
changeset
|
46 |
ser = new IriSP.JSONSerializer(dt, "../test.json"); |
| 88 | 47 |
var player = new IriSP.PlayerWidget(pop, config, ser); |
48 |
var annotationWidget = new IriSP.AnnotationsWidget(pop, config, ser); |
|
49 |
ser.sync(function() { player.draw(); annotationWidget.draw(); }); |
|
|
84
44ffcad678eb
changes to the integration testing file for html5 video.
hamidouk
parents:
76
diff
changeset
|
50 |
}); |
| 76 | 51 |
</script> |
52 |
||
|
84
44ffcad678eb
changes to the integration testing file for html5 video.
hamidouk
parents:
76
diff
changeset
|
53 |
<video id='video' |
|
44ffcad678eb
changes to the integration testing file for html5 video.
hamidouk
parents:
76
diff
changeset
|
54 |
style="display:;width:300px" |
|
44ffcad678eb
changes to the integration testing file for html5 video.
hamidouk
parents:
76
diff
changeset
|
55 |
controls |
|
44ffcad678eb
changes to the integration testing file for html5 video.
hamidouk
parents:
76
diff
changeset
|
56 |
preload="auto"> |
| 76 | 57 |
|
|
84
44ffcad678eb
changes to the integration testing file for html5 video.
hamidouk
parents:
76
diff
changeset
|
58 |
<source id='mp4' |
|
44ffcad678eb
changes to the integration testing file for html5 video.
hamidouk
parents:
76
diff
changeset
|
59 |
src="../trailer.mp4" |
|
44ffcad678eb
changes to the integration testing file for html5 video.
hamidouk
parents:
76
diff
changeset
|
60 |
type='video/mp4; codecs="avc1, mp4a"'> |
|
44ffcad678eb
changes to the integration testing file for html5 video.
hamidouk
parents:
76
diff
changeset
|
61 |
|
|
44ffcad678eb
changes to the integration testing file for html5 video.
hamidouk
parents:
76
diff
changeset
|
62 |
<source id='ogv' |
|
44ffcad678eb
changes to the integration testing file for html5 video.
hamidouk
parents:
76
diff
changeset
|
63 |
src="../trailer.ogv" |
|
44ffcad678eb
changes to the integration testing file for html5 video.
hamidouk
parents:
76
diff
changeset
|
64 |
type='video/ogg; codecs="theora, vorbis"'> |
|
44ffcad678eb
changes to the integration testing file for html5 video.
hamidouk
parents:
76
diff
changeset
|
65 |
|
|
44ffcad678eb
changes to the integration testing file for html5 video.
hamidouk
parents:
76
diff
changeset
|
66 |
<source id='webm' |
|
44ffcad678eb
changes to the integration testing file for html5 video.
hamidouk
parents:
76
diff
changeset
|
67 |
src="../trailer.webm" |
|
44ffcad678eb
changes to the integration testing file for html5 video.
hamidouk
parents:
76
diff
changeset
|
68 |
type='video/webm; codecs="vp8, vorbis"'> |
|
44ffcad678eb
changes to the integration testing file for html5 video.
hamidouk
parents:
76
diff
changeset
|
69 |
|
|
44ffcad678eb
changes to the integration testing file for html5 video.
hamidouk
parents:
76
diff
changeset
|
70 |
<p>Your user agent does not support the HTML5 Video element.</p> |
|
44ffcad678eb
changes to the integration testing file for html5 video.
hamidouk
parents:
76
diff
changeset
|
71 |
|
|
44ffcad678eb
changes to the integration testing file for html5 video.
hamidouk
parents:
76
diff
changeset
|
72 |
</video> |
| 76 | 73 |
</body> |
74 |
</html> |