| author | veltr |
| Fri, 04 May 2012 16:56:41 +0200 | |
| branch | new-model |
| changeset 883 | d35ad8111c5e |
| parent 882 | test/index.htm@61c384dda19e |
| child 884 | 10233337f6da |
| permissions | -rw-r--r-- |
| 178 | 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> |
|
| 883 | 5 |
<title>Metadataplayer - Test with JwPlayer</title> |
| 178 | 6 |
</head> |
7 |
||
8 |
<body> |
|
| 882 | 9 |
<script type="text/javascript" src="../build/LdtPlayer-core.js" type="text/javascript"></script> |
|
213
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
10 |
|
|
829
ae16691d183d
Corrected segments widget, added excludePattern option to tagcloud widget
veltr
parents:
827
diff
changeset
|
11 |
<div id="LdtPlayer"></div> |
|
213
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
12 |
|
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
13 |
<script type="text/javascript"> |
| 882 | 14 |
IriSP.libFiles.defaultDir = "../src/js/libs/"; |
15 |
IriSP.widgetsDir = "../src/widgets" |
|
16 |
IriSP.jwplayer_swf_path = "player.swf"; |
|
| 868 | 17 |
var _metadata = { |
| 883 | 18 |
url: 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/f1a17368-2bc8-11e1-b21a-00145ea49a02?callback=?', |
| 868 | 19 |
format: 'ldt' |
20 |
}; |
|
21 |
var _config = { |
|
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
22 |
gui: { |
| 882 | 23 |
width:620, |
|
213
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
24 |
container:'LdtPlayer', |
| 810 | 25 |
default_options: { |
| 868 | 26 |
metadata: _metadata |
| 810 | 27 |
}, |
| 882 | 28 |
css:'../src/css/LdtPlayer-core.css', |
|
213
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
29 |
widgets: [ |
| 882 | 30 |
{ type: "Sparkline" }, |
31 |
{ type: "Slider" }, |
|
32 |
{ type: "Controller" }, |
|
33 |
{ type: "Polemic" }, |
|
34 |
{ type: "Segments" }, |
|
35 |
{ type: "Slice" }, |
|
36 |
{ type: "Arrow" }, |
|
37 |
{ type: "Annotation" }, |
|
38 |
{ type: "Tweet" }, |
|
39 |
{ type: "Tagcloud" }, |
|
| 880 | 40 |
{ |
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
41 |
type: "AnnotationsList", |
| 876 | 42 |
//ajax_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=?", |
| 882 | 43 |
//foreign_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/{{media}}/{{project}}/{{annotationType}}#id={{annotation}}", |
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
44 |
container: "AnnotationsListContainer" |
| 880 | 45 |
}, |
| 882 | 46 |
{ type: "Mediafragment"}, |
47 |
/* { |
|
48 |
type: "Trace", |
|
49 |
js_console: true |
|
50 |
} |
|
51 |
*/ ] |
|
|
213
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
52 |
}, |
| 882 | 53 |
player:{ |
54 |
type:'jwplayer', // player type |
|
55 |
live: true, |
|
| 883 | 56 |
height: 350, |
| 882 | 57 |
width: 620, |
| 883 | 58 |
provider: "rtmp" , |
59 |
autostart: true |
|
| 882 | 60 |
} |
|
213
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
61 |
}; |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
62 |
|
| 868 | 63 |
var _myPlayer = new IriSP.Metadataplayer(_config, _metadata); |
|
213
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
64 |
</script> |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
65 |
|
| 883 | 66 |
<div id="AnnotationsListContainer" style="position: absolute; width: 400px; left: 660px; top: 0;"></div> |
|
213
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
67 |
|
| 178 | 68 |
</body> |
| 302 | 69 |
</html> |