| author | veltr |
| Mon, 16 Apr 2012 14:21:57 +0200 | |
| changeset 863 | dc5e0ea0093c |
| parent 855 | 1be5beb4b196 |
| child 867 | 43f615b4dc48 |
| 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;"> |
| 842 | 7 |
<div style="width:650px;"> |
| 835 | 8 |
<h1>MetaDataPlayer</h1> |
9 |
Integration test - ALLOCINE PLAYER |
|
10 |
</div> |
|
11 |
<!-- START Integration ###################################### --> |
|
12 |
<!-- SIMPLE PLAYER EXPERIMENTATION --> |
|
| 855 | 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"> |
|
| 842 | 18 |
var json_url = 'json_examples/movie32.json'; |
19 |
|
|
| 835 | 20 |
IriSP.user = { |
21 |
name : 'awesome_user_name', |
|
22 |
avatar : 'allocine_test/avatar.png' |
|
23 |
}; |
|
| 842 | 24 |
IriSP.libFiles.defaultDir = "/metadataplayer/src/js/libs/"; |
| 855 | 25 |
IriSP.language = 'fr'; |
| 835 | 26 |
var config = { |
27 |
gui : { |
|
28 |
width : 610, |
|
|
838
03b03865eb9b
Transferred i18n data to widgets, corrected slider bug, added search in annotationslist
veltr
parents:
836
diff
changeset
|
29 |
height : 900, |
| 835 | 30 |
container : 'LdtPlayer', |
31 |
css : 'css/LdtPlayer.css', |
|
32 |
default_options : { |
|
| 842 | 33 |
width: 610, |
34 |
cinecast_version: true, |
|
| 835 | 35 |
metadata : { |
36 |
format : 'cinelab', |
|
37 |
src : json_url, |
|
38 |
type : 'json' |
|
| 842 | 39 |
} |
| 835 | 40 |
}, |
41 |
widgets : [{ |
|
42 |
type : "AnnotationsListWidget", |
|
| 842 | 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 |
|
| 835 | 46 |
}, { |
47 |
type : "SparklineWidget", |
|
48 |
height : 50, |
|
49 |
lineColor: "#ffffff", |
|
50 |
fillColor: "#999999" |
|
51 |
}, { |
|
52 |
type : "SegmentsWidget", |
|
53 |
requires : [{ |
|
54 |
type : "TooltipWidget", |
|
55 |
width : 180, |
|
56 |
height : 160, |
|
57 |
}] |
|
58 |
}, { |
|
59 |
type : "createAnnotationWidget", |
|
60 |
polemic_mode : false, |
|
| 842 | 61 |
remote_tags : { |
62 |
id : "cinecast", |
|
63 |
url : "http://festival.cinecast.fr/configuration.json", |
|
64 |
alias : 'http://festival.cinecast.fr/configuration.jsonp?jsonp=?' |
|
65 |
}, |
|
66 |
random_tags : 3, |
|
| 841 | 67 |
disable_share: true, |
| 852 | 68 |
api_endpoint_template : "json_examples/return_after_post.json", //"endpoint/{{id}}.json", |
| 835 | 69 |
api_method : 'POST' |
| 863 | 70 |
} /*, { |
| 835 | 71 |
type: "TraceWidget", |
| 841 | 72 |
// js_console : true, |
73 |
url: "http://traces.advene.org:5000/", |
|
| 835 | 74 |
requestmode: 'GET', |
75 |
syncmode: "sync" |
|
| 842 | 76 |
} */ ] |
| 833 | 77 |
}, |
| 835 | 78 |
player : { |
79 |
type : 'allocine', // player type |
|
80 |
height : 300, |
|
81 |
width : 610, |
|
| 841 | 82 |
acPlayerUrl : "allocine_test/AcPlayer_v3.0_new.swf", |
83 |
autoPlay : "true", |
|
84 |
urlAcData : "allocine_test/data_cinecast_new.xml" |
|
| 835 | 85 |
}, |
86 |
modules : [{ |
|
87 |
type : "MediaFragment", |
|
88 |
metadata : { |
|
89 |
format : 'cinelab', |
|
90 |
src : json_url, |
|
91 |
type : 'json' |
|
92 |
} |
|
93 |
}] |
|
|
819
9b8e68803f6f
add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff
changeset
|
94 |
|
| 835 | 95 |
}; |
96 |
||
97 |
IriSP.initPlayer(config, json_url); |
|
|
819
9b8e68803f6f
add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff
changeset
|
98 |
|
| 835 | 99 |
</script> |
|
838
03b03865eb9b
Transferred i18n data to widgets, corrected slider bug, added search in annotationslist
veltr
parents:
836
diff
changeset
|
100 |
<div id="MyListContainer" style="float: left; width: 400px;"></div> |
| 835 | 101 |
</body> |
102 |
</html> |