| author | veltr |
| Fri, 27 Apr 2012 19:18:21 +0200 | |
| branch | new-model |
| changeset 881 | f11b234497f7 |
| parent 880 | 4c7b33bf2795 |
| 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> |
|
| 208 | 5 |
<title>Metadataplayer - Polemic tweet integration test</title> |
| 178 | 6 |
</head> |
7 |
||
8 |
<body> |
|
9 |
||
|
213
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
10 |
<div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial', 'Verdana', 'sans-serif';"> |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
11 |
<h1>MetaDataPlayer</h1> |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
12 |
Polemic tweet integration test - using Popcorn, jwplayer and the <a href="http://polemictweet.com">PolemicTweet</a> widget.<br> |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
13 |
</div> |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
14 |
|
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
15 |
|
| 178 | 16 |
<!-- START Integration ###################################### --> |
17 |
<!-- SIMPLE PLAYER EXPERIMENTATION --> |
|
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
18 |
<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
|
19 |
|
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
20 |
<div id="video"></div> |
|
829
ae16691d183d
Corrected segments widget, added excludePattern option to tagcloud widget
veltr
parents:
827
diff
changeset
|
21 |
<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
|
22 |
|
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
23 |
<script type="text/javascript"> |
| 842 | 24 |
IriSP.libFiles.defaultDir = "/metadataplayer/src/js/libs/"; |
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
25 |
IriSP.widgetsDir = "/metadataplayer/src/widgets" |
| 830 | 26 |
IriSP.jwplayer_swf_path = "../libs/player.swf"; |
| 868 | 27 |
var _metadata = { |
| 880 | 28 |
url: 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/13b0aa52-336b-11e0-b233-00145ea49a02?callback=?', |
| 868 | 29 |
format: 'ldt' |
30 |
}; |
|
31 |
var _config = { |
|
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
32 |
gui: { |
|
872
d777d05a16e4
finished AnnotationsList and started New PolemicWidget
veltr
parents:
870
diff
changeset
|
33 |
width:640, |
| 876 | 34 |
height:800, |
|
213
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
35 |
container:'LdtPlayer', |
| 810 | 36 |
default_options: { |
| 868 | 37 |
metadata: _metadata |
| 810 | 38 |
}, |
|
874
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
872
diff
changeset
|
39 |
css:'../../src/css/LdtPlayer-release.css', |
|
213
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
40 |
widgets: [ |
| 833 | 41 |
/* {type: "PolemicWidget", |
42 |
width: 640, |
|
| 810 | 43 |
height: 50, |
|
336
8da13562cfea
segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents:
302
diff
changeset
|
44 |
requires: [{ |
|
8da13562cfea
segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents:
302
diff
changeset
|
45 |
type: "TooltipWidget", |
|
8da13562cfea
segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents:
302
diff
changeset
|
46 |
width: 180, |
|
827
1dc2f85c3b89
BUGFIX: Tooltips are now positioned relative to their parent widget.
veltr
parents:
815
diff
changeset
|
47 |
height: 160, |
|
1dc2f85c3b89
BUGFIX: Tooltips are now positioned relative to their parent widget.
veltr
parents:
815
diff
changeset
|
48 |
}], |
| 866 | 49 |
}, |
| 833 | 50 |
{type: "StackGraphWidget", |
51 |
height: 150, |
|
52 |
streamgraph: true, |
|
53 |
requires: [{ |
|
54 |
type: "TooltipWidget", |
|
55 |
width: 180, |
|
56 |
height: 160, |
|
57 |
}], |
|
|
827
1dc2f85c3b89
BUGFIX: Tooltips are now positioned relative to their parent widget.
veltr
parents:
815
diff
changeset
|
58 |
}, |
| 835 | 59 |
{type: "SparklineWidget", |
| 833 | 60 |
width: 640, |
| 835 | 61 |
height: 50}, |
| 810 | 62 |
{type: "PlayerWidget"}, |
63 |
{type: "SegmentsWidget", |
|
64 |
requires: [{ |
|
65 |
type: "TooltipWidget", |
|
66 |
width: 180, |
|
67 |
heigh: 160, |
|
68 |
}], |
|
| 537 | 69 |
}, |
| 810 | 70 |
{type: "SliceWidget"}, |
71 |
{type: "ArrowWidget"}, |
|
72 |
{type: "AnnotationsWidget"}, |
|
73 |
{type: "TweetsWidget"}, |
|
|
829
ae16691d183d
Corrected segments widget, added excludePattern option to tagcloud widget
veltr
parents:
827
diff
changeset
|
74 |
{type: "createAnnotationWidget"}, |
|
ae16691d183d
Corrected segments widget, added excludePattern option to tagcloud widget
veltr
parents:
827
diff
changeset
|
75 |
{type: "TagCloudWidget", |
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
76 |
excludeWords: ['#museoweb']},, */ |
| 833 | 77 |
// {type: "TraceWidget"} |
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
78 |
{ |
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
79 |
type: "Sparkline" |
|
874
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
872
diff
changeset
|
80 |
}, |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
872
diff
changeset
|
81 |
{ |
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
82 |
type: "Slider" |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
83 |
}, |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
84 |
{ |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
85 |
type: "Controller" |
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
86 |
}, |
|
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
87 |
{ |
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
88 |
type: "Polemic" |
|
872
d777d05a16e4
finished AnnotationsList and started New PolemicWidget
veltr
parents:
870
diff
changeset
|
89 |
}, |
|
d777d05a16e4
finished AnnotationsList and started New PolemicWidget
veltr
parents:
870
diff
changeset
|
90 |
{ |
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
91 |
type: "Segments" |
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
92 |
}, |
|
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
93 |
{ |
| 880 | 94 |
type: "Slice" |
95 |
}, |
|
96 |
{ |
|
| 876 | 97 |
type: "Arrow" |
98 |
}, |
|
99 |
{ |
|
100 |
type: "Annotation" |
|
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
101 |
}, |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
102 |
{ |
| 880 | 103 |
type: "Tweet" |
104 |
}, |
|
105 |
{ |
|
106 |
type: "Tagcloud" |
|
107 |
}, |
|
108 |
{ |
|
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
109 |
type: "AnnotationsList", |
| 876 | 110 |
//ajax_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=?", |
|
872
d777d05a16e4
finished AnnotationsList and started New PolemicWidget
veltr
parents:
870
diff
changeset
|
111 |
foreign_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/{{media}}/{{project}}/{{annotationType}}#id={{annotation}}", |
|
d777d05a16e4
finished AnnotationsList and started New PolemicWidget
veltr
parents:
870
diff
changeset
|
112 |
annotation_type : "tweet", |
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
113 |
container: "AnnotationsListContainer" |
| 880 | 114 |
}, |
115 |
{ type: "Mediafragment"} |
|
|
213
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
116 |
] |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
117 |
}, |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
118 |
player:{ |
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
119 |
type:'jwplayer', // player type |
| 708 | 120 |
live: true, |
121 |
height: 300, |
|
122 |
width: 640, |
|
123 |
provider: "rtmp" |
|
|
465
daa60afb3a50
added mediafragment module to the polemic tweet example.
hamidouk
parents:
453
diff
changeset
|
124 |
}, |
|
daa60afb3a50
added mediafragment module to the polemic tweet example.
hamidouk
parents:
453
diff
changeset
|
125 |
modules: [ |
| 866 | 126 |
/* { type: "MediaFragment", |
| 810 | 127 |
metadata:{ |
128 |
format:'cinelab', |
|
129 |
src:file, |
|
130 |
type:'json'} |
|
| 866 | 131 |
}*/] |
|
465
daa60afb3a50
added mediafragment module to the polemic tweet example.
hamidouk
parents:
453
diff
changeset
|
132 |
|
|
213
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
133 |
}; |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
134 |
|
| 868 | 135 |
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
|
136 |
</script> |
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
137 |
|
|
d65dafb9273d
changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents:
208
diff
changeset
|
138 |
|
| 178 | 139 |
</body> |
| 585 | 140 |
<div id="AnnotationsListContainer" style="position: absolute; width: 400px; left: 660px; top: 105px;"></div> |
| 302 | 141 |
</html> |