| author | veltr |
| Tue, 03 Apr 2012 20:30:12 +0200 | |
| branch | popcorn-port |
| changeset 841 | 8da49ff273e0 |
| parent 840 | ac66e2240e1e |
| permissions | -rw-r--r-- |
|
819
9b8e68803f6f
add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff
changeset
|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|
9b8e68803f6f
add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff
changeset
|
2 |
<html dir="ltr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml" lang="fr"> |
| 835 | 3 |
<head> |
4 |
<title>Metadataplayer - Polemic tweet integration test</title> |
|
5 |
</head> |
|
| 840 | 6 |
<body style="background: #222222; color: #ff00ff;"> |
| 835 | 7 |
<div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial', 'Verdana', 'sans-serif';"> |
8 |
<h1>MetaDataPlayer</h1> |
|
9 |
Integration test - ALLOCINE PLAYER |
|
10 |
</div> |
|
11 |
<!-- START Integration ###################################### --> |
|
12 |
<!-- SIMPLE PLAYER EXPERIMENTATION --> |
|
| 840 | 13 |
<script type="text/javascript" src="/metadataplayer/build/LdtPlayer-release.js" type="text/javascript"></script> |
| 835 | 14 |
<div id="video"></div> |
|
838
03b03865eb9b
Transferred i18n data to widgets, corrected slider bug, added search in annotationslist
veltr
parents:
836
diff
changeset
|
15 |
<div id="LdtPlayer" style="float: left;"></div> |
| 835 | 16 |
<div id="Sparkline"></div> |
17 |
<script type="text/javascript"> |
|
18 |
var json_url = 'allocine_test/bamako.json'; |
|
|
819
9b8e68803f6f
add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff
changeset
|
19 |
|
| 835 | 20 |
IriSP.user = { |
21 |
name : 'awesome_user_name', |
|
22 |
avatar : 'allocine_test/avatar.png' |
|
23 |
}; |
|
| 841 | 24 |
IriSP.libdir = "js/libs/"; |
| 835 | 25 |
IriSP.defaults.user = function() { |
26 |
return IriSP.user; |
|
27 |
}; |
|
28 |
var config = { |
|
29 |
gui : { |
|
30 |
width : 610, |
|
|
838
03b03865eb9b
Transferred i18n data to widgets, corrected slider bug, added search in annotationslist
veltr
parents:
836
diff
changeset
|
31 |
height : 900, |
| 835 | 32 |
container : 'LdtPlayer', |
33 |
css : 'css/LdtPlayer.css', |
|
34 |
default_options : { |
|
35 |
metadata : { |
|
36 |
format : 'cinelab', |
|
37 |
src : json_url, |
|
38 |
type : 'json' |
|
39 |
}, |
|
40 |
cinecast_version : true, |
|
41 |
width : 610 |
|
42 |
}, |
|
43 |
widgets : [{ |
|
44 |
type : "AnnotationsListWidget", |
|
|
838
03b03865eb9b
Transferred i18n data to widgets, corrected slider bug, added search in annotationslist
veltr
parents:
836
diff
changeset
|
45 |
container : "MyListContainer", |
| 835 | 46 |
ajax_mode : false |
47 |
}, { |
|
48 |
type : "SparklineWidget", |
|
49 |
height : 50, |
|
50 |
lineColor: "#ffffff", |
|
51 |
fillColor: "#999999" |
|
52 |
}, { |
|
53 |
type : "SegmentsWidget", |
|
54 |
requires : [{ |
|
55 |
type : "TooltipWidget", |
|
56 |
width : 180, |
|
57 |
height : 160, |
|
58 |
}] |
|
59 |
}, { |
|
60 |
type : "createAnnotationWidget", |
|
61 |
polemic_mode : false, |
|
| 841 | 62 |
remote_keywords : 'http://festival.cinecast.fr/configuration.jsonp?jsonp=?', |
63 |
random_keywords : 3, |
|
64 |
disable_share: true, |
|
| 835 | 65 |
api_endpoint_template : "coucou/{{id}}.json", |
66 |
api_method : 'POST' |
|
| 839 | 67 |
}, { |
| 835 | 68 |
type: "TraceWidget", |
| 841 | 69 |
// js_console : true, |
70 |
url: "http://traces.advene.org:5000/", |
|
| 835 | 71 |
requestmode: 'GET', |
72 |
syncmode: "sync" |
|
| 841 | 73 |
} ] |
| 833 | 74 |
}, |
| 835 | 75 |
player : { |
76 |
type : 'allocine', // player type |
|
77 |
height : 300, |
|
78 |
width : 610, |
|
| 841 | 79 |
acPlayerUrl : "allocine_test/AcPlayer_v3.0_new.swf", |
80 |
autoPlay : "true", |
|
81 |
urlAcData : "allocine_test/data_cinecast_new.xml" |
|
| 835 | 82 |
}, |
83 |
modules : [{ |
|
84 |
type : "MediaFragment", |
|
85 |
metadata : { |
|
86 |
format : 'cinelab', |
|
87 |
src : json_url, |
|
88 |
type : 'json' |
|
89 |
} |
|
90 |
}] |
|
|
819
9b8e68803f6f
add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff
changeset
|
91 |
|
| 835 | 92 |
}; |
93 |
||
94 |
IriSP.initPlayer(config, json_url); |
|
|
819
9b8e68803f6f
add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff
changeset
|
95 |
|
| 835 | 96 |
</script> |
|
838
03b03865eb9b
Transferred i18n data to widgets, corrected slider bug, added search in annotationslist
veltr
parents:
836
diff
changeset
|
97 |
<div id="MyListContainer" style="float: left; width: 400px;"></div> |
| 835 | 98 |
</body> |
99 |
</html> |