| author | ymh <ymh.work@gmail.com> |
| Wed, 04 Sep 2024 17:32:50 +0200 | |
| changeset 1072 | ac1eacb3aa33 |
| parent 1069 | test/slideshare.htm@2409cb4cebaf |
| child 1076 | 510fd2a482f4 |
| permissions | -rw-r--r-- |
| 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> |
|
|
1069
2409cb4cebaf
getting various changes from github
ymh <ymh.work@gmail.com>
parents:
965
diff
changeset
|
7 |
<link href='open-sans/css/fonts.css' rel='stylesheet' type='text/css'> |
| 922 | 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 |
<style type="text/css"> |
|
11 |
#SlideShareContainer { |
|
12 |
float: left; |
|
13 |
width: 400px; |
|
14 |
margin: 10px 0; |
|
15 |
} |
|
16 |
</style> |
|
17 |
</head> |
|
18 |
||
19 |
<body> |
|
20 |
<h1>Metadataplayer test with JwPlayer</h1> |
|
21 |
<div id="LdtPlayer"></div> |
|
22 |
<div id="SlideShareContainer"></div> |
|
23 |
<div id="AnnotationsListContainer"></div> |
|
24 |
<script type="text/javascript"> |
|
| 960 | 25 |
IriSP.libFiles.defaultDir = "libs/"; |
26 |
IriSP.language = 'fr'; |
|
27 |
IriSP.widgetsDir = "metadataplayer"; |
|
28 |
var _metadata = { |
|
29 |
url: 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/8a1a344a-7f34-11e1-9ee2-00145ea4a2be?callback=?', |
|
30 |
format: 'ldt' |
|
31 |
}; |
|
32 |
var _config = { |
|
33 |
width : 620, |
|
34 |
container : 'LdtPlayer', |
|
35 |
default_options: { |
|
36 |
metadata: _metadata |
|
37 |
}, |
|
38 |
css : 'metadataplayer/LdtPlayer-core.css', |
|
39 |
widgets: [ |
|
40 |
{ |
|
41 |
type: "JwpPlayer", |
|
42 |
live: true, |
|
43 |
height: 350, |
|
| 922 | 44 |
provider: "rtmp", |
45 |
autostart: true, |
|
| 960 | 46 |
streamer: function(_url) { |
47 |
var _matches = _url.match(/^[^\/]+\/\/[^\/]+\/[^\/]+\//); |
|
48 |
if (_matches) { |
|
49 |
return _matches[0]; |
|
50 |
} else { |
|
51 |
return _url; |
|
52 |
} |
|
53 |
} |
|
54 |
}, |
|
55 |
{ type: "Slider" }, |
|
56 |
{ type: "Controller" }, |
|
57 |
{ type: "Polemic" }, |
|
58 |
{ type: "Segments" }, |
|
59 |
{ type: "Annotation" }, |
|
60 |
{ |
|
| 965 | 61 |
type: "Segments", |
62 |
annotation_type: "Slide" |
|
| 960 | 63 |
}, |
64 |
{ type: "Tweet" }, |
|
65 |
{ |
|
66 |
type: "Tagcloud" |
|
67 |
}, |
|
68 |
{ |
|
69 |
type: "AnnotationsList", |
|
70 |
container: "AnnotationsListContainer" |
|
71 |
}, |
|
72 |
{ |
|
73 |
type: "Slideshare", |
|
74 |
container: "SlideShareContainer" |
|
75 |
}, |
|
76 |
{ type: "Mediafragment"} |
|
77 |
] |
|
78 |
}; |
|
| 922 | 79 |
|
| 945 | 80 |
var _myPlayer = new IriSP.Metadataplayer(_config); |
| 922 | 81 |
|
82 |
</script> |
|
83 |
</body> |
|
84 |
</html> |