| author | hamidouk |
| Fri, 03 Feb 2012 17:05:11 +0100 | |
| branch | popcorn-port |
| changeset 777 | 96e89720ff18 |
| parent 744 | 76400fd4ce70 |
| child 805 | 48cd2b83c7c5 |
| permissions | -rw-r--r-- |
| 617 | 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 |
<title>Metadataplayer - Polemic tweet integration test</title> |
|
6 |
</head> |
|
7 |
||
8 |
<body> |
|
9 |
||
10 |
<div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial', 'Verdana', 'sans-serif';"> |
|
11 |
<h1>MetaDataPlayer</h1> |
|
12 |
Integration test - Using an ldtplatform located at http://localhost/pf/ |
|
13 |
</div> |
|
14 |
||
15 |
||
16 |
<!-- START Integration ###################################### --> |
|
17 |
<!-- SIMPLE PLAYER EXPERIMENTATION --> |
|
18 |
<script type="text/javascript" src="../../build/LdtPlayer-release.js" type="text/javascript"></script> |
|
19 |
||
20 |
<div id="video"></div> |
|
21 |
<div id="LdtPlayer"></div> |
|
22 |
<div id="Sparkline"></div> |
|
23 |
<script type="text/javascript"> |
|
| 725 | 24 |
var platf_url = "http://192.168.56.101/pf/ldtplatform/ldt/", |
25 |
project_id = "bb18dcdc-41bc-11e1-91b2-08002791f1b7", |
|
26 |
json_url = platf_url + 'cljson/id/' + project_id; |
|
| 617 | 27 |
var config = { |
28 |
gui:{ |
|
29 |
width:650, |
|
30 |
height:2100, |
|
31 |
container:'LdtPlayer', |
|
32 |
css:'../../src/css/LdtPlayer.css', |
|
| 725 | 33 |
widgets: [ |
34 |
{type: "StackGraphWidget", |
|
35 |
tags : [ |
|
36 |
{ |
|
37 |
"keywords" : [ "élève", "souleyman", "souleiman", "koumba", "kumba", "karl", "esmeralda" ], |
|
38 |
"description" : "Mentions des élèves", |
|
39 |
"color" : "#CE0A15", |
|
40 |
}, |
|
41 |
{ |
|
42 |
"keywords" : [ "F.M", "françois" ], |
|
43 |
"description" : "Mentions de François", |
|
44 |
"color" : "#036AAE", |
|
45 |
}, |
|
46 |
{ |
|
47 |
"keywords" : [ "plan", "pano", "caméra", "plongée" ], |
|
48 |
"description" : "Descriptions de plans", |
|
49 |
"color" : "#C5A62D", |
|
50 |
}, |
|
51 |
], |
|
52 |
metadata:{ |
|
53 |
format:'cinelab', |
|
54 |
src: json_url, |
|
55 |
type:'json'}, |
|
56 |
|
|
57 |
requires: [{ |
|
58 |
type: "TooltipWidget", |
|
59 |
width: 180, |
|
60 |
heigh: 160, |
|
61 |
metadata : {type:'empty' |
|
62 |
} |
|
63 |
}], |
|
64 |
}, |
|
| 617 | 65 |
{type: "AnnotationsListWidget", |
66 |
container: "AnnotationsListContainer", |
|
| 725 | 67 |
metadata:{ |
68 |
format:'cinelab', |
|
69 |
src:json_url, |
|
70 |
type:'json'} |
|
71 |
}, |
|
| 617 | 72 |
{type: "SparklineWidget", |
73 |
width: 640, /* required for this widget */ |
|
74 |
height: 50, |
|
| 725 | 75 |
metadata:{ |
76 |
format:'cinelab', |
|
77 |
src:json_url, |
|
78 |
type:'json'} |
|
79 |
}, |
|
| 617 | 80 |
{type: "SliderWidget", |
| 725 | 81 |
metadata:{ |
82 |
format:'cinelab', |
|
83 |
src:json_url, |
|
84 |
type:'json'} |
|
85 |
}, |
|
| 617 | 86 |
{type: "PlayerWidget", // please note that type refers directly to the constructor of the widget. |
87 |
mode: "radio", |
|
88 |
metadata:{ |
|
89 |
format:'cinelab', |
|
| 725 | 90 |
src:json_url, |
| 617 | 91 |
type:'json'} |
92 |
}, |
|
93 |
{type: "SegmentsWidget", |
|
94 |
metadata:{ |
|
95 |
format:'cinelab', |
|
| 725 | 96 |
src:json_url, |
| 617 | 97 |
type:'json'}, |
98 |
requires: [{ |
|
99 |
type: "TooltipWidget", |
|
100 |
width: 180, |
|
101 |
heigh: 160, |
|
102 |
metadata : { |
|
103 |
type:'empty' |
|
104 |
} |
|
105 |
}], |
|
106 |
}, |
|
107 |
{type: "ArrowWidget", |
|
108 |
metadata:{ |
|
109 |
format:'cinelab', |
|
| 725 | 110 |
src:json_url, |
| 617 | 111 |
type:'json'} |
112 |
}, |
|
113 |
{type: "TweetsWidget", |
|
| 725 | 114 |
metadata:{ |
115 |
format:'cinelab', |
|
116 |
src:json_url, |
|
117 |
type:'json'} |
|
118 |
}, |
|
| 617 | 119 |
{type: "createAnnotationWidget", |
| 725 | 120 |
metadata:{ |
121 |
format:'cinelab', |
|
122 |
src:json_url, |
|
123 |
type:'json'} |
|
124 |
} |
|
| 617 | 125 |
] |
126 |
}, |
|
127 |
player:{ |
|
128 |
type:'jwplayer', // player type |
|
129 |
live: true, |
|
130 |
height: 300, |
|
131 |
width: 640, |
|
132 |
provider: "rtmp" |
|
133 |
}, |
|
134 |
modules: [ |
|
135 |
{ type: "MediaFragment", |
|
| 725 | 136 |
metadata:{ |
137 |
format:'cinelab', |
|
138 |
src:json_url, |
|
139 |
type:'json'} |
|
140 |
}] |
|
| 617 | 141 |
|
142 |
}; |
|
143 |
|
|
|
744
76400fd4ce70
changed the files to follow the simpler embed convention.
hamidouk
parents:
725
diff
changeset
|
144 |
IriSP.initPlayer(config, json_url); |
|
76400fd4ce70
changed the files to follow the simpler embed convention.
hamidouk
parents:
725
diff
changeset
|
145 |
|
| 617 | 146 |
</script> |
147 |
||
148 |
||
149 |
</body> |
|
150 |
<div id="AnnotationsListContainer" style="position: absolute; width: 400px; left: 660px; top: 105px;"></div> |
|
151 |
</html> |