1 <!doctype html> |
1 <!DOCTYPE html> |
2 <html> |
2 <html> |
3 <head> |
3 <head> |
4 <title>Preuve de concept Mashup</title> |
4 <title>Preuve de concept Mashup</title> |
5 <link rel="stylesheet" type="text/css" href="style.css" /> |
5 <link rel="stylesheet" type="text/css" href="style.css" /> |
6 <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> |
6 <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> |
7 <script type="text/javascript" src="../metadataplayer/LdtPlayer-core.js" type="text/javascript"></script> |
7 <script |
8 </head> |
8 type="text/javascript" |
9 <body> |
9 src="../metadataplayer/LdtPlayer-core.js" |
10 <div class="main-container"> |
10 type="text/javascript" |
11 <div class="header"> |
11 ></script> |
12 <h1>Hash Cut #</h1> |
12 </head> |
13 </div> |
13 <body> |
14 <div class="steps"> |
14 <div class="main-container"> |
15 <h2>Créer un Hash-cut en 3 étapes :</h2> |
15 <div class="header"> |
16 <div class="steps-frame"> |
16 <h1>Hash Cut #</h1> |
17 <div class="step"> |
17 </div> |
18 <div class="step-icon step-1"></div> |
18 <div class="steps"> |
19 <div class="step-title">S'inscrire et<br />créer un projet</div> |
19 <h2>Créer un Hash-cut en 3 étapes :</h2> |
20 </div> |
20 <div class="steps-frame"> |
21 <div class="step-separator"></div> |
21 <div class="step"> |
22 <div class="step"> |
22 <div class="step-icon step-1"></div> |
23 <div class="step-icon step-2"></div> |
23 <div class="step-title">S'inscrire et<br />créer un projet</div> |
24 <div class="step-title">Découper et<br />Assembler</div> |
24 </div> |
25 </div> |
25 <div class="step-separator"></div> |
26 <div class="step-separator"></div> |
26 <div class="step"> |
27 <div class="step active"> |
27 <div class="step-icon step-2"></div> |
28 <div class="step-icon step-3"></div> |
28 <div class="step-title">Découper et<br />Assembler</div> |
29 <div class="step-title">Partager et<br />regarder !</div> |
29 </div> |
30 </div> |
30 <div class="step-separator"></div> |
31 </div> |
31 <div class="step active"> |
32 </div> |
32 <div class="step-icon step-3"></div> |
33 <div class="colgauche"> |
33 <div class="step-title">Partager et<br />regarder !</div> |
34 <h2>Mon HashCut, avec des instances de Jw Player</h2> |
34 </div> |
35 <hr /> |
|
36 <div id="LdtPlayer"></div> |
|
37 </div> |
|
38 <div class="coldroite"> |
|
39 <div id="mediaList"></div> |
|
40 <h2>Annotations</h2> |
|
41 <hr /> |
|
42 <div id="annotationList"></div> |
|
43 </div> |
|
44 <div class="footer"> |
|
45 <hr /> |
|
46 <p style="text-align: right;">© IRI 2012</p> |
|
47 </div> |
|
48 </div> |
35 </div> |
|
36 </div> |
|
37 <div class="colgauche"> |
|
38 <h2>Mon HashCut, avec des instances de Jw Player</h2> |
|
39 <hr /> |
|
40 <div id="LdtPlayer"></div> |
|
41 </div> |
|
42 <div class="coldroite"> |
|
43 <div id="mediaList"></div> |
|
44 <h2>Annotations</h2> |
|
45 <hr /> |
|
46 <div id="annotationList"></div> |
|
47 </div> |
|
48 <div class="footer"> |
|
49 <hr /> |
|
50 <p style="text-align: right">© IRI 2012</p> |
|
51 </div> |
|
52 </div> |
49 <script type="text/javascript"> |
53 <script type="text/javascript"> |
50 |
54 IriSP.widgetsDir = "../metadataplayer"; |
51 IriSP.libFiles.defaultDir = "../libs/"; |
55 IriSP.language = "fr"; |
52 IriSP.widgetsDir = "../metadataplayer"; |
56 var _metadata = { |
53 IriSP.language = 'fr'; |
57 url: "bab_files/mashup.json", |
54 var _metadata = { |
58 // url: 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/b2754186-a0c9-11e0-b8bd-00145ea49a02?callback=?', |
55 url: 'bab_files/mashup.json', |
59 // url: 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/5afd8bbe-9b75-11e1-9e5d-00145ea4a2be?callback=?' |
56 // url: 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/b2754186-a0c9-11e0-b8bd-00145ea49a02?callback=?', |
60 format: "ldt", |
57 // url: 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/5afd8bbe-9b75-11e1-9e5d-00145ea4a2be?callback=?' |
61 }; |
58 format: 'ldt' |
62 var _config = { |
59 }; |
63 width: 630, |
60 var _config = { |
64 container: "LdtPlayer", |
61 width : 630, |
65 default_options: { |
62 container : 'LdtPlayer', |
66 metadata: _metadata, |
63 default_options: { |
67 }, |
64 metadata: _metadata |
68 css: "../metadataplayer/LdtPlayer-core.css", |
65 }, |
69 widgets: [ |
66 css : '../metadataplayer/LdtPlayer-core.css', |
70 { |
67 widgets: [ |
|
68 { |
|
69 type: "MashupPlayer", |
71 type: "MashupPlayer", |
70 player_type: "JwpPlayer", |
72 player_type: "JwpPlayer", |
71 player_options: { |
73 player_options: { |
72 live: true, |
74 live: true, |
73 provider: "rtmp", |
75 provider: "rtmp", |
74 streamer: function(_url) { |
76 streamer: function (_url) { |
75 var _matches = _url.match(/^[^\/]+\/\/[^\/]+\/[^\/]+\//); |
77 var _matches = _url.match(/^[^\/]+\/\/[^\/]+\/[^\/]+\//); |
76 if (_matches) { |
78 if (_matches) { |
77 return _matches[0]; |
79 return _matches[0]; |
78 } else { |
80 } else { |
79 return _url; |
81 return _url; |
80 } |
|
81 } |
82 } |
|
83 }, |
82 }, |
84 }, |
83 // split_screen: true |
85 // split_screen: true |
84 }, |
86 }, |
85 { type: "Slider" }, |
87 { type: "Slider" }, |
86 { type: "Controller" }, |
88 { type: "Controller" }, |
87 { |
89 { |
88 type: "Segments", |
90 type: "Segments", |
89 annotation_type: false |
91 annotation_type: false, |
90 }, |
92 }, |
91 { |
93 { |
92 type: "Annotation", |
94 type: "Annotation", |
93 annotation_type: false |
95 annotation_type: false, |
94 }, |
96 }, |
95 { |
97 { |
96 type: "Tagger", |
98 type: "Tagger", |
97 api_endpoint: "../post-test.php", |
99 api_endpoint: "../post-test.php", |
98 tags: ["actif","amour","bonheur","captif","charité","désir","dieu","doute","famille","idéal","internationale","passif","patrie","peur","politique","président","spleen","travail"] |
100 tags: [ |
99 }, |
101 "actif", |
100 { |
102 "amour", |
|
103 "bonheur", |
|
104 "captif", |
|
105 "charité", |
|
106 "désir", |
|
107 "dieu", |
|
108 "doute", |
|
109 "famille", |
|
110 "idéal", |
|
111 "internationale", |
|
112 "passif", |
|
113 "patrie", |
|
114 "peur", |
|
115 "politique", |
|
116 "président", |
|
117 "spleen", |
|
118 "travail", |
|
119 ], |
|
120 }, |
|
121 { |
101 type: "MediaList", |
122 type: "MediaList", |
102 container: "mediaList" |
123 container: "mediaList", |
103 }, |
124 }, |
104 { |
125 { |
105 type: "AnnotationsList", |
126 type: "AnnotationsList", |
106 container: "annotationList", |
127 container: "annotationList", |
107 //ajax_url: "http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=?", |
128 //ajax_url: "http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=?", |
108 //ajax_granularity: 30000, |
129 //ajax_granularity: 30000, |
109 //limit_count: 3 |
130 //limit_count: 3 |
110 }, |
131 }, |
111 { type: "Mediafragment" } |
132 { type: "Mediafragment" }, |
112 ] |
133 ], |
113 }; |
134 }; |
114 |
135 |
115 _myPlayer = new IriSP.Metadataplayer(_config); |
136 _myPlayer = new IriSP.Metadataplayer(_config); |
116 |
|
117 </script> |
137 </script> |
118 </body> |
138 </body> |
119 </html> |
139 </html> |