|
0
|
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"> |
|
13
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|
|
4 |
<?php $url = "http://www.iri.centrepompidou.fr/dev/ldt/ldtplatform/ldt/cljson/id/" . $_GET["stream"]; |
|
|
5 |
$lines = file("entretiens.txt"); |
|
6
|
6 |
|
|
13
|
7 |
/* thank you php docs */ |
|
|
8 |
foreach ($lines as $line_num => $line) { |
|
|
9 |
if ($line[0] == "#") |
|
|
10 |
continue; |
|
|
11 |
|
|
|
12 |
list($title, $author, $stream_id, $thumbnail, $date, $descript) = explode(";", $line); |
|
|
13 |
if ($stream_id == $_GET["stream"]) |
|
|
14 |
break; |
|
|
15 |
|
|
|
16 |
if (strlen($title) >= 37) { |
|
|
17 |
$title = substr($title, 0, 35) . "..."; |
|
|
18 |
} |
|
|
19 |
} |
|
|
20 |
?> |
|
0
|
21 |
<head> |
|
|
22 |
<title>Metadataplayer - Demo</title> |
|
|
23 |
<link href='http://fonts.googleapis.com/css?family=PT+Sans+Narrow' rel='stylesheet' type='text/css'> |
|
|
24 |
<link href="style.css" rel="stylesheet" type="text/css"> |
|
|
25 |
<script src="LdtPlayer-release.js" type="text/javascript"></script> |
|
|
26 |
<script src="jquery.min.js" type="text/javascript"></script> |
|
|
27 |
<script src="jquery.tools.min.js" type="text/javascript"></script> |
|
|
28 |
<script src="jquery-ui.js" type="text/javascript"></script> |
|
|
29 |
|
|
|
30 |
</head> |
|
|
31 |
|
|
|
32 |
<body> |
|
|
33 |
<div id="outer_div"> |
|
6
|
34 |
<img src="../crea/imgs/edition_2011.png" style="position: absolute; z-index: 3; margin-left: 12px;"></img> |
|
|
35 |
<div id="banner"> |
|
7
|
36 |
<a href="index.php"> |
|
|
37 |
<img src="../crea/imgs/enmi_logo.png"></img> |
|
|
38 |
</a> |
|
0
|
39 |
<div style="clear: both;"></div> |
|
6
|
40 |
</div> |
|
0
|
41 |
|
|
|
42 |
<div id="inner_div"> |
|
|
43 |
<div id="intro_title"> |
|
|
44 |
Metadataplayer, un outil opensource pour le web |
|
|
45 |
</div> |
|
|
46 |
|
|
13
|
47 |
<table border=0 id="player_content"> |
|
0
|
48 |
<tr> |
|
|
49 |
<td id="left_pane"></td> |
|
|
50 |
<td id="right_pane"> |
|
13
|
51 |
<div id="session_infos" style="padding: 5px; background-color: #bbb; width: 220px; margin-top: 5px; margin-left: -3px;"> |
|
|
52 |
|
|
|
53 |
<b><?php echo $title ?></b><br> |
|
|
54 |
par <?php echo $author ?>,<br> <?php echo $date ?>. |
|
|
55 |
</div> |
|
|
56 |
<!-- <img src="../crea/imgs/technos.png" style="margin-top: 5px; margin-left: -3px;"></img> --> |
|
0
|
57 |
<div id="caption_text"> |
|
13
|
58 |
<p> |
|
|
59 |
<b>Description : </b> |
|
|
60 |
<?php echo $descript ?> |
|
|
61 |
</p> |
|
|
62 |
<p> |
|
|
63 |
<b>Technologie :</b> Le MetaData player est une librarie opensource conçue pour afficher, produire et partager |
|
|
64 |
des métadonnées associées à des segments de contenus audiovisuels diffusés sur le Web. Il tire parti des derniers |
|
|
65 |
standards technologiques (html5, W3C mediafragment, popcorn.js de la fondation Mozilla). |
|
|
66 |
</p> |
|
0
|
67 |
</div> |
|
|
68 |
</td> |
|
|
69 |
</table> |
|
|
70 |
|
|
6
|
71 |
<div id="partners"> |
|
|
72 |
<a href="http://www.iri.centrepompidou.fr" target="_blank"><img src="../crea/imgs/iri_logo.png"></a> |
|
|
73 |
<a href="http://www.capdigital.com/" target="_blank"><img src="../crea/imgs/capd_logo.png"></a> |
|
|
74 |
<a href="http://www.ensci.com/" target="_blank"><img src="../crea/imgs/ensci_logo.png"></a> |
|
|
75 |
<a href="http://www.institut-telecom.fr/" target="_blank"><img src="../crea/imgs/institut_telecom_logo.png"></a> |
|
|
76 |
<a href="http://fing.org" target="_blank"><img src="../crea/imgs/fing_logo.png"></a> |
|
|
77 |
<a href="http://www.alcatel-lucent.com" target="_blank"><img src="../crea/imgs/alcatel_logo.png"></a> |
|
0
|
78 |
</div> |
|
|
79 |
|
|
|
80 |
<div id="footer"> |
|
|
81 |
<a href="http://www.iri.centrepompidou.fr">iri.centrepompidou.fr</a> |
|
|
82 |
</div> |
|
|
83 |
</div> |
|
|
84 |
|
|
|
85 |
</div> |
|
|
86 |
<div id="closing_div"></div> |
|
|
87 |
<script type="text/javascript"> |
|
|
88 |
$(document).ready(function() { |
|
|
89 |
var config = { |
|
|
90 |
gui:{ |
|
7
|
91 |
width:603, |
|
0
|
92 |
height:480, |
|
|
93 |
container:'left_pane', |
|
|
94 |
css:'LdtPlayer.css', |
|
|
95 |
widgets: [ |
|
|
96 |
{type: "PolemicWidget", |
|
7
|
97 |
width: 605, /* required for this widget */ |
|
0
|
98 |
height: 50, |
|
|
99 |
heightmax: 50, |
|
|
100 |
metadata:{ |
|
|
101 |
format:'cinelab', |
|
|
102 |
src:"<?php echo $url ?>", |
|
|
103 |
type:'json'}, |
|
|
104 |
|
|
|
105 |
requires: [{ |
|
|
106 |
type: "TooltipWidget", |
|
|
107 |
width: 180, |
|
|
108 |
height: 160, |
|
|
109 |
metadata : { |
|
|
110 |
format:'cinelab', |
|
|
111 |
src:"<?php echo $url ?>", |
|
|
112 |
type:'empty' |
|
|
113 |
} |
|
|
114 |
}], |
|
|
115 |
}, |
|
|
116 |
{type: "SliderWidget", |
|
|
117 |
width: 640, |
|
|
118 |
metadata:{ |
|
|
119 |
format:'cinelab', |
|
|
120 |
src:"<?php echo $url ?>", |
|
|
121 |
type:'json'} |
|
|
122 |
}, |
|
|
123 |
{type: "PlayerWidget", // please note that type refers directly to the constructor of the widget. |
|
|
124 |
mode: "radio", |
|
|
125 |
width: 640, |
|
|
126 |
metadata:{ |
|
|
127 |
format:'cinelab', |
|
|
128 |
src:"<?php echo $url ?>", |
|
|
129 |
type:'json'} |
|
|
130 |
}, |
|
|
131 |
{type: "SegmentsWidget", |
|
|
132 |
width: 640, |
|
|
133 |
metadata:{ |
|
|
134 |
format:'cinelab', |
|
|
135 |
src:"<?php echo $url ?>", |
|
|
136 |
type:'json'}, |
|
|
137 |
requires: [{ |
|
|
138 |
type: "TooltipWidget", |
|
|
139 |
width: 180, |
|
|
140 |
height: 160, |
|
|
141 |
metadata : { |
|
|
142 |
type:'empty' |
|
|
143 |
} |
|
|
144 |
}], |
|
|
145 |
}, |
|
|
146 |
{type: "ArrowWidget", |
|
|
147 |
metadata:{ |
|
|
148 |
format:'cinelab', |
|
|
149 |
src:"<?php echo $url ?>", |
|
|
150 |
type:'json'} |
|
|
151 |
}, |
|
|
152 |
{type: "AnnotationsWidget", |
|
|
153 |
metadata:{ |
|
|
154 |
format:'cinelab', |
|
|
155 |
src:"<?php echo $url ?>", |
|
|
156 |
type:'json'} |
|
|
157 |
}, |
|
|
158 |
{type: "TweetsWidget", |
|
|
159 |
metadata:{ |
|
|
160 |
format:'cinelab', |
|
|
161 |
src:"<?php echo $url ?>", |
|
|
162 |
type:'json'} |
|
|
163 |
} |
|
|
164 |
] |
|
|
165 |
}, |
|
|
166 |
player:{ |
|
|
167 |
type:'jwplayer', // player type |
|
|
168 |
flashplayer: 'player.swf', |
|
|
169 |
live: true, |
|
|
170 |
"controlbar.position" : "none", |
|
|
171 |
height: 300, |
|
7
|
172 |
width: 605, |
|
0
|
173 |
provider: "rtmp" |
|
|
174 |
}, |
|
|
175 |
modules: [ |
|
|
176 |
{ type: "MediaFragment", |
|
|
177 |
metadata:{ |
|
|
178 |
format:'cinelab', |
|
|
179 |
src:"<?php echo $url ?>", |
|
|
180 |
type:'json'} |
|
|
181 |
}] |
|
|
182 |
|
|
|
183 |
}; |
|
|
184 |
|
|
|
185 |
IriSP.lib = { |
|
|
186 |
jQuery : "jquery.js", |
|
|
187 |
jQueryUI : "jquery-ui.js", |
|
|
188 |
jQueryToolTip : "jquery.tools.min.js", |
|
|
189 |
swfObject : "swfobject.js", |
|
|
190 |
cssjQueryUI : "jquery-ui.css", |
|
|
191 |
}; |
|
|
192 |
|
|
|
193 |
IriSP.loadLibs(IriSP.lib, config.gui.css, "<?php echo $url ?>", |
|
|
194 |
function() { |
|
|
195 |
var layoutManager = new IriSP.LayoutManager(config.gui); |
|
|
196 |
var pop = IriSP.configurePopcorn(layoutManager, config.player); |
|
|
197 |
|
|
|
198 |
var modules = IriSP.configureModules(pop, config.modules); |
|
|
199 |
var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); }); |
|
|
200 |
|
|
|
201 |
}); |
|
|
202 |
</script> |
|
|
203 |
|
|
|
204 |
</body> |
|
|
205 |
</html> |