1 <!doctype html> |
1 <!DOCTYPE html> |
2 <html> |
2 <html> |
|
3 <head> |
|
4 <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> |
|
5 <title>Metadataplayer test with JwPlayer</title> |
|
6 <!-- <link href='open-sans/css/fonts.css' rel='stylesheet' type='text/css'> |
|
7 --> |
|
8 <link href="test.css" rel="stylesheet" type="text/css" /> |
|
9 <link href="/src/main.module.css" rel="stylesheet" type="text/css" /> |
|
10 </head> |
3 |
11 |
4 <head> |
12 <body> |
5 <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> |
13 <h1>Metadataplayer test with JwPlayer</h1> |
6 <title>Metadataplayer test with JwPlayer</title> |
14 <div id="LdtPlayer"></div> |
7 <!-- <link href='open-sans/css/fonts.css' rel='stylesheet' type='text/css'> |
15 <div id="AnnotationsListContainer"></div> |
8 --> <link href='test.css' rel='stylesheet' type='text/css'> |
16 <div id="SlideShareContainer"></div> |
9 <link href="/src/main.module.css" rel="stylesheet" type="text/css" /> |
17 <script type="module"> |
10 </head> |
|
11 |
|
12 <body> |
|
13 <h1>Metadataplayer test with JwPlayer</h1> |
|
14 <div id="LdtPlayer"></div> |
|
15 <div id="AnnotationsListContainer"></div> |
|
16 <div id="SlideShareContainer"></div> |
|
17 <script type="module"> |
|
18 import LdtPlayerCore from "/src/main.js"; |
18 import LdtPlayerCore from "/src/main.js"; |
19 IriSP.language = 'fr'; |
19 IriSP.language = "fr"; |
20 var _metadata = { |
20 var _metadata = { |
21 // url: 'json/ldt-jwplayer.json', |
21 // url: 'json/ldt-jwplayer.json', |
22 url: 'https://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/e2f36e5c-8b26-11e2-a28d-00145ea4a2be', |
22 url: "https://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/e2f36e5c-8b26-11e2-a28d-00145ea4a2be", |
23 // url: 'http://capsicum/pf/ldtplatform/ldt/cljson/id/f1a17368-2bc8-11e1-b21a-00145ea49a02', |
23 // url: 'http://capsicum/pf/ldtplatform/ldt/cljson/id/f1a17368-2bc8-11e1-b21a-00145ea49a02', |
24 // url: 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/fc0a654e-49ea-11e2-b4ad-00145ea4a2be', |
24 // url: 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/fc0a654e-49ea-11e2-b4ad-00145ea4a2be', |
25 format: 'ldt' |
25 format: "ldt", |
26 }; |
26 }; |
27 var _config = { |
27 var _config = { |
28 width : 550, |
28 width: 550, |
29 container : 'LdtPlayer', |
29 container: "LdtPlayer", |
30 default_options: { |
30 default_options: { |
31 metadata: _metadata |
31 metadata: _metadata, |
32 }, |
32 }, |
33 widgets: [ |
33 widgets: [ |
34 { |
34 { |
35 type: "HtmlPlayer", |
35 type: "HtmlPlayer", |
36 autostart: true, |
36 autostart: true, |
37 url_transform: function(url) { |
37 url_transform: function (url) { |
38 return url.replace('/ddc_player/video/','/ddc_player/mp4:video/'); |
38 return url.replace( |
39 } |
39 "/ddc_player/video/", |
|
40 "/ddc_player/mp4:video/" |
|
41 ); |
40 }, |
42 }, |
41 { type: "Slider" }, |
43 }, |
42 { type: "Controller" }, |
44 { type: "Slider" }, |
43 { |
45 { type: "Controller" }, |
44 type: "Polemic", |
46 { |
45 max_elements: 20, |
47 type: "Polemic", |
46 annotation_type: false |
48 max_elements: 20, |
47 }, |
49 annotation_type: false, |
48 { type: "Sparkline" }, |
50 }, |
49 { type: "MultiSegments" }, |
51 { type: "Sparkline" }, |
50 { |
52 { type: "MultiSegments" }, |
51 type: "CreateAnnotation", |
53 { |
52 api_endpoint_template: "post-test.php", |
54 type: "CreateAnnotation", |
53 creator_name: "Metadataplayer", |
55 api_endpoint_template: "post-test.php", |
54 creator_avatar: "https://pbs.twimg.com/profile_images/2284174872/7df3h38zabcvjylnyfe3_normal.png", |
56 creator_name: "Metadataplayer", |
55 tag_titles: ["amateur", "digital-humanities"], |
57 creator_avatar: "https://via.placeholder.com/48", |
56 //show_title_field: false, |
58 tag_titles: ["amateur", "digital-humanities"], |
57 //show_creator_field: false, |
59 //show_title_field: false, |
58 show_slice: false |
60 //show_creator_field: false, |
59 }, |
61 show_slice: false, |
60 { |
62 }, |
61 type: "Tweet" |
63 { |
62 }, |
64 type: "Tweet", |
63 { |
65 }, |
64 type: "Tagcloud" |
66 { |
65 }, |
67 type: "Tagcloud", |
66 { |
68 }, |
67 type: "AnnotationsList", |
69 { |
68 container: "AnnotationsListContainer", |
70 type: "AnnotationsList", |
69 default_thumbnail : "https://ldt.iri.centrepompidou.fr/static/site/ldt/css/imgs/video_sequence.png", |
71 container: "AnnotationsListContainer", |
70 //ajax_url: "/pf/ldtplatform/api/ldt/1.0/segments/bytimecode/{{media}}/{{begin}}/{{end}}", |
72 default_thumbnail: |
71 //ajax_granularity : 300000 |
73 "https://ldt.iri.centrepompidou.fr/static/site/ldt/css/imgs/video_sequence.png", |
72 }, |
74 //ajax_url: "/pf/ldtplatform/api/ldt/1.0/segments/bytimecode/{{media}}/{{begin}}/{{end}}", |
73 // { |
75 //ajax_granularity : 300000 |
74 // type: "Slideshare", |
76 }, |
75 // container: "SlideShareContainer" |
77 // { |
76 // }, |
78 // type: "Slideshare", |
77 { type: "Mediafragment"}, |
79 // container: "SlideShareContainer" |
78 // { type: "Trace", |
80 // }, |
79 // js_console: true } |
81 { type: "Mediafragment" }, |
80 ] |
82 // { type: "Trace", |
81 }; |
83 // js_console: true } |
82 |
84 ], |
83 var _myPlayer = new IriSP.Metadataplayer(_config); |
85 }; |
84 |
86 |
85 </script> |
87 var _myPlayer = new IriSP.Metadataplayer(_config); |
86 </body> |
88 </script> |
|
89 </body> |
87 </html> |
90 </html> |