|
922
|
1 |
<!doctype html> |
|
|
2 |
<html> |
|
|
3 |
|
|
|
4 |
<head> |
|
|
5 |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> |
|
|
6 |
<title>Metadataplayer test with JwPlayer</title> |
|
|
7 |
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic' rel='stylesheet' type='text/css'> |
|
|
8 |
<link href='test.css' rel='stylesheet' type='text/css'> |
|
|
9 |
<script type="text/javascript" src="metadataplayer/LdtPlayer-core.js" type="text/javascript"></script> |
|
|
10 |
<script type="text/javascript" src="test-config.js" type="text/javascript"></script> |
|
|
11 |
<style type="text/css"> |
|
|
12 |
#SlideShareContainer { |
|
|
13 |
float: left; |
|
|
14 |
width: 400px; |
|
|
15 |
margin: 10px 0; |
|
|
16 |
} |
|
|
17 |
</style> |
|
|
18 |
</head> |
|
|
19 |
|
|
|
20 |
<body> |
|
|
21 |
<h1>Metadataplayer test with JwPlayer</h1> |
|
|
22 |
<div id="LdtPlayer"></div> |
|
|
23 |
<div id="SlideShareContainer"></div> |
|
|
24 |
<div id="AnnotationsListContainer"></div> |
|
|
25 |
<script type="text/javascript"> |
|
|
26 |
IriSP.libFiles.locations.jwPlayerSWF = "player.swf"; |
|
|
27 |
IriSP.libFiles.defaultDir = "libs/"; |
|
|
28 |
IriSP.language = 'fr'; |
|
|
29 |
IriSP.widgetsDir = "metadataplayer"; |
|
|
30 |
var _metadata = { |
|
|
31 |
url: 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/8a1a344a-7f34-11e1-9ee2-00145ea4a2be?callback=?', |
|
|
32 |
format: 'ldt' |
|
|
33 |
}; |
|
|
34 |
var _config = { |
|
|
35 |
gui: { |
|
|
36 |
width : 620, |
|
|
37 |
container : 'LdtPlayer', |
|
|
38 |
default_options: { |
|
|
39 |
metadata: _metadata |
|
|
40 |
}, |
|
|
41 |
css : 'metadataplayer/LdtPlayer-core.css', |
|
|
42 |
widgets: [ |
|
|
43 |
{ type: "Slider" }, |
|
|
44 |
{ type: "Controller" }, |
|
|
45 |
{ type: "Polemic" }, |
|
|
46 |
{ type: "Segments" }, |
|
|
47 |
{ type: "Slice" }, |
|
|
48 |
{ type: "Arrow" }, |
|
|
49 |
{ type: "Annotation" }, |
|
|
50 |
{ |
|
|
51 |
type: "CreateAnnotation", |
|
|
52 |
api_endpoint_template: "http://192.168.56.101/pf/ldtplatform/api/ldt/annotations/{{id}}.json", |
|
|
53 |
creator_name: "Metadataplayer" |
|
|
54 |
}, |
|
|
55 |
{ type: "Tweet" }, |
|
|
56 |
{ |
|
|
57 |
type: "Tagcloud" |
|
|
58 |
}, |
|
|
59 |
{ |
|
|
60 |
type: "AnnotationsList", |
|
|
61 |
container: "AnnotationsListContainer" |
|
|
62 |
}, |
|
|
63 |
{ |
|
|
64 |
type: "Slideshare", |
|
|
65 |
container: "SlideShareContainer" |
|
|
66 |
}, |
|
|
67 |
{ type: "Mediafragment"} |
|
|
68 |
] |
|
|
69 |
}, |
|
|
70 |
player:{ |
|
|
71 |
type:'auto', |
|
|
72 |
live: true, |
|
|
73 |
height: 350, |
|
|
74 |
width: 620, |
|
|
75 |
provider: "rtmp", |
|
|
76 |
autostart: true, |
|
|
77 |
metadata: _metadata |
|
|
78 |
} |
|
|
79 |
}; |
|
|
80 |
|
|
|
81 |
_myPlayer = new IriSP.Metadataplayer(_config); |
|
|
82 |
|
|
|
83 |
</script> |
|
|
84 |
</body> |
|
|
85 |
</html> |