| author | cavaliet |
| Fri, 27 Apr 2012 11:52:05 +0200 | |
| changeset 879 | 85da59ccbdf8 |
| parent 871 | a5607fa1ef0b |
| permissions | -rw-r--r-- |
| 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 |
}, { |
|
|
871
a5607fa1ef0b
Enhance SlideShare widget for it to point the a specified div (like annotationListWidget).
cavaliet
parents:
861
diff
changeset
|
65 |
type : "SlideShareWidget", |
|
879
85da59ccbdf8
Update SlideShareWidget with buttons down the slides. Synchro can be disabled/enabled.
cavaliet
parents:
871
diff
changeset
|
66 |
container : "MySlideShareContainer", |
|
85da59ccbdf8
Update SlideShareWidget with buttons down the slides. Synchro can be disabled/enabled.
cavaliet
parents:
871
diff
changeset
|
67 |
embed_width : 330, |
|
85da59ccbdf8
Update SlideShareWidget with buttons down the slides. Synchro can be disabled/enabled.
cavaliet
parents:
871
diff
changeset
|
68 |
embed_height : 250 |
| 861 | 69 |
}, { |
70 |
type : "createAnnotationWidget", |
|
71 |
polemic_mode : false, |
|
72 |
api_endpoint_template : "json_examples/return_after_post.json", //"endpoint/{{id}}.json", |
|
73 |
api_method : 'POST' |
|
74 |
}, /* { |
|
75 |
type: "TraceWidget", |
|
76 |
// js_console : true, |
|
77 |
url: "http://traces.advene.org:5000/", |
|
78 |
requestmode: 'GET', |
|
79 |
syncmode: "sync" |
|
80 |
} */ ] |
|
81 |
}, |
|
82 |
player : { |
|
83 |
type : 'jwplayer', // player type |
|
84 |
height : 300, |
|
85 |
width : 610, |
|
86 |
provider : 'rtmp', |
|
87 |
flashplayer : '../libs/player.swf' |
|
88 |
}, |
|
89 |
modules : [{ |
|
90 |
type : "MediaFragment", |
|
91 |
metadata : { |
|
92 |
format : 'cinelab', |
|
93 |
src : json_url, |
|
94 |
type : 'json' |
|
95 |
} |
|
96 |
}] |
|
97 |
||
98 |
}; |
|
99 |
||
100 |
IriSP.initPlayer(config, json_url); |
|
101 |
||
102 |
</script> |
|
|
879
85da59ccbdf8
Update SlideShareWidget with buttons down the slides. Synchro can be disabled/enabled.
cavaliet
parents:
871
diff
changeset
|
103 |
<div id="MySlideShareContainer" style="float: left; width: 400px; margin-left: 5px;"></div> |
|
85da59ccbdf8
Update SlideShareWidget with buttons down the slides. Synchro can be disabled/enabled.
cavaliet
parents:
871
diff
changeset
|
104 |
<div id="MyListContainer" style="float: left; width: 400px; margin-left: 5px;"></div> |
| 861 | 105 |
</body> |
106 |
</html> |