|
861
|
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 |
<head> |
|
|
4 |
<title>Metadataplayer - Polemic tweet integration test</title> |
|
|
5 |
</head> |
|
|
6 |
<body> |
|
|
7 |
<div style="width:650px;"> |
|
|
8 |
<h1>MetaDataPlayer</h1> |
|
|
9 |
Integration test - SLIDE SHARE |
|
|
10 |
</div> |
|
|
11 |
<!-- START Integration ###################################### --> |
|
|
12 |
<!-- SIMPLE PLAYER EXPERIMENTATION --> |
|
|
13 |
<script type="text/javascript" src="/metadataplayer/build/LdtPlayer-release.js" type="text/javascript"></script> |
|
|
14 |
<div id="video"></div> |
|
|
15 |
<div id="LdtPlayer" style="float: left;"></div> |
|
|
16 |
<div id="Sparkline"></div> |
|
|
17 |
<script type="text/javascript"> |
|
|
18 |
var json_url = 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/8a1a344a-7f34-11e1-9ee2-00145ea4a2be'; |
|
|
19 |
|
|
|
20 |
IriSP.user = { |
|
|
21 |
name : 'awesome_user_name', |
|
|
22 |
avatar : 'allocine_dossier_independant/allocine_test/avatar.png' |
|
|
23 |
}; |
|
|
24 |
IriSP.libFiles.defaultDir = "/metadataplayer/src/js/libs/"; |
|
|
25 |
IriSP.language = 'fr'; |
|
|
26 |
var config = { |
|
|
27 |
gui : { |
|
|
28 |
width : 610, |
|
|
29 |
height : 900, |
|
|
30 |
container : 'LdtPlayer', |
|
|
31 |
css : '../../src/css/LdtPlayer.css', |
|
|
32 |
default_options : { |
|
|
33 |
width: 610, |
|
|
34 |
//cinecast_version: true, |
|
|
35 |
metadata : { |
|
|
36 |
format : 'cinelab', |
|
|
37 |
src : json_url, |
|
|
38 |
type : 'json' |
|
|
39 |
} |
|
|
40 |
}, |
|
|
41 |
widgets : [{ |
|
|
42 |
type : "AnnotationsListWidget", |
|
|
43 |
container : "MyListContainer", // div dans lequel sera affiché "Annotations Liées" |
|
|
44 |
ajax_mode : false, // nécessaire pour des raisons historiques |
|
|
45 |
refresh_interval : 15 * 60 * 1000 // 15 minutes |
|
|
46 |
}, { |
|
|
47 |
type : "SparklineWidget", |
|
|
48 |
height : 50, |
|
|
49 |
lineColor: "#ffffff", |
|
|
50 |
fillColor: "#999999" |
|
|
51 |
}, { |
|
|
52 |
type : "SliderWidget" |
|
|
53 |
}, { |
|
|
54 |
type : "PlayerWidget", |
|
|
55 |
mode: 'radio', |
|
|
56 |
height : 100 |
|
|
57 |
}, { |
|
|
58 |
type : "SegmentsWidget", |
|
|
59 |
requires : [{ |
|
|
60 |
type : "TooltipWidget", |
|
|
61 |
width : 180, |
|
|
62 |
height : 160, |
|
|
63 |
}] |
|
|
64 |
}, { |
|
|
65 |
type : "SlideShareWidget" |
|
|
66 |
}, { |
|
|
67 |
type : "createAnnotationWidget", |
|
|
68 |
polemic_mode : false, |
|
|
69 |
api_endpoint_template : "json_examples/return_after_post.json", //"endpoint/{{id}}.json", |
|
|
70 |
api_method : 'POST' |
|
|
71 |
}, /* { |
|
|
72 |
type: "TraceWidget", |
|
|
73 |
// js_console : true, |
|
|
74 |
url: "http://traces.advene.org:5000/", |
|
|
75 |
requestmode: 'GET', |
|
|
76 |
syncmode: "sync" |
|
|
77 |
} */ ] |
|
|
78 |
}, |
|
|
79 |
player : { |
|
|
80 |
type : 'jwplayer', // player type |
|
|
81 |
height : 300, |
|
|
82 |
width : 610, |
|
|
83 |
provider : 'rtmp', |
|
|
84 |
flashplayer : '../libs/player.swf' |
|
|
85 |
}, |
|
|
86 |
modules : [{ |
|
|
87 |
type : "MediaFragment", |
|
|
88 |
metadata : { |
|
|
89 |
format : 'cinelab', |
|
|
90 |
src : json_url, |
|
|
91 |
type : 'json' |
|
|
92 |
} |
|
|
93 |
}] |
|
|
94 |
|
|
|
95 |
}; |
|
|
96 |
|
|
|
97 |
IriSP.initPlayer(config, json_url); |
|
|
98 |
|
|
|
99 |
</script> |
|
|
100 |
<div id="MyListContainer" style="float: left; width: 400px;"></div> |
|
|
101 |
</body> |
|
|
102 |
</html> |