4 * include some common code (like we did in the 90s) |
4 * include some common code (like we did in the 90s) |
5 * People still do this? ;) |
5 * People still do this? ;) |
6 */ |
6 */ |
7 $rep = $_REQUEST['rep']; |
7 $rep = $_REQUEST['rep']; |
8 include_once dirname(__FILE__).'/'.$rep.'/config.php'; |
8 include_once dirname(__FILE__).'/'.$rep.'/config.php'; |
9 // configuration |
9 // configuration |
10 include 'common.php'; |
10 include 'common.php'; |
11 |
11 |
12 // todo : |
12 // todo : |
13 // - gestion du parent.document.location mediafragment |
13 // - gestion du parent.document.location mediafragment |
14 // - limite taille vertical embed |
14 // - limite taille vertical embed |
15 // - ajouter la polemic timline en dessous de la video |
15 // - ajouter la polemic timline en dessous de la video |
16 |
16 |
17 ?> |
17 ?> |
18 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
18 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
19 <html lang="en"> |
19 <html lang="en"> |
20 <head> |
20 <head> |
21 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
21 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
22 <title>RSLN - Polemic player embed page</title> |
22 <title>RSLN - Polemic player embed page</title> |
23 |
23 |
24 <!-- JAVASCRIPT --> |
24 <!-- JAVASCRIPT --> |
25 <script type="text/javascript" src="<?php echo(registry_url('jquery','js'))?>"></script> |
25 <script type="text/javascript" src="<?php echo(registry_url('jquery','js'))?>"></script> |
26 <script type="text/javascript"> |
26 <script type="text/javascript"> |
27 $.noConflict(); |
27 $.noConflict(); |
28 </script> |
28 </script> |
29 <script type="text/javascript" src="<?php echo(registry_url('jquery-ui','js'))?>"></script> |
29 <script type="text/javascript" src="<?php echo(registry_url('jquery-ui','js'))?>"></script> |
30 <script type="text/javascript" src="<?php echo(registry_url('raphael','js'))?>"></script> |
30 <script type="text/javascript" src="<?php echo(registry_url('raphael','js'))?>"></script> |
31 |
31 |
32 <!-- FONT --> |
32 <!-- FONT --> |
33 <link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'> |
33 <link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'> |
34 <link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'> |
34 <link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'> |
35 <link href='<?php echo(registry_url('Geo','font'))?>' rel='stylesheet' type='text/css'> |
35 <link href='<?php echo(registry_url('Geo','font'))?>' rel='stylesheet' type='text/css'> |
36 |
36 |
37 <style type="text/css"> |
37 <style type="text/css"> |
38 body{ |
38 body{ |
39 padding:0px; |
39 padding:0px; |
40 margin:0px; |
40 margin:0px; |
41 } |
41 } |
42 .tooltip{ |
42 .tooltip{ |
72 <script type="text/javascript"> |
72 <script type="text/javascript"> |
73 |
73 |
74 var _gaq = _gaq || []; |
74 var _gaq = _gaq || []; |
75 _gaq.push(['_setAccount', 'UA-23581291-1']); |
75 _gaq.push(['_setAccount', 'UA-23581291-1']); |
76 _gaq.push(['_trackPageview']); |
76 _gaq.push(['_trackPageview']); |
77 _gaq.push(['_setAllowAnchor', true]); |
77 _gaq.push(['_setAllowAnchor', true]); |
78 |
78 |
79 |
79 |
80 (function() { |
80 (function() { |
81 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
81 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
82 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
82 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
94 y:418, |
94 y:418, |
95 width:<?php echo($config['player_width']); ?>, |
95 width:<?php echo($config['player_width']); ?>, |
96 height:<?php echo($config['player_height']); ?>, |
96 height:<?php echo($config['player_height']); ?>, |
97 heightmax:<?php echo($config['player_height']); ?>, |
97 heightmax:<?php echo($config['player_height']); ?>, |
98 duration:<?php echo($config['duration']); ?>, |
98 duration:<?php echo($config['duration']); ?>, |
99 metadata:"<?php echo($config['metadata']); ?>" |
99 metadata:"<?php echo($translate->_('config__metadata')); ?>" |
100 } |
100 } |
101 </script> |
101 </script> |
102 <script type='text/javascript' src='<?php echo(URL_ROOT);?>res/metadataplayer.polemic/src/js/polemic.js'></script> |
102 <script type='text/javascript' src='<?php echo(URL_ROOT);?>res/metadataplayer.polemic/src/js/polemic.js'></script> |
103 |
103 |
104 <body> |
104 <body> |
105 <!-- tooltip --> |
105 <!-- tooltip --> |
106 <div id="tip"> |
106 <div id="tip"> |
107 <div id="tipcolor" style="height:10px;width:10px"></div> |
107 <div id="tipcolor" style="height:10px;width:10px"></div> |
108 <div id="tiptext"></div> |
108 <div id="tiptext"></div> |
109 </div> |
109 </div> |
110 |
110 |
111 <div class="root" > |
111 <div class="root" > |
112 <div class="videoLivePlayer"> |
112 <div class="videoLivePlayer"> |
113 <div id="chartTimeline"> </div> |
113 <div id="chartTimeline"> </div> |
114 <script type="text/javascript"> |
114 <script type="text/javascript"> |
115 var paper = Raphael(document.getElementById("chartTimeline"),config.width, config.height); |
115 var paper = Raphael(document.getElementById("chartTimeline"),config.width, config.height); |
116 </script> |
116 </script> |
117 <script type='text/javascript' src='<?php echo(URL_ROOT.$config['player']);?>'></script> |
117 <script type='text/javascript' src='<?php echo(URL_ROOT.$config['player']);?>'></script> |
118 <script type="text/javascript"> |
118 <script type="text/javascript"> |
119 jQuery.extend(__IriSP.lib,{ |
119 jQuery.extend(__IriSP.lib,{ |
120 jQueryToolTip:"<?php echo(registry_url('jquery-tools','js'));?>", |
120 jQueryToolTip:"<?php echo(registry_url('jquery-tools','js'));?>", |
121 jQueryUI:"<?php echo(registry_url('jquery-ui','js'));?>", |
121 jQueryUI:"<?php echo(registry_url('jquery-ui','js'));?>", |
122 swfObject:"<?php echo(registry_url('swfobject','js'));?>", |
122 swfObject:"<?php echo(registry_url('swfobject','js'));?>", |
123 cssjQueryUI:"<?php echo(registry_url('jquery-ui','css'));?>" |
123 cssjQueryUI:"<?php echo(registry_url('jquery-ui','css'));?>" |
124 }); |
124 }); |
125 </script> |
125 </script> |
126 <div id="player_project_843fff80-6b50-11e0-8aef-00145ea49a02_embed" class="iri_player_embed"> </div> |
126 <div id="player_project_843fff80-6b50-11e0-8aef-00145ea49a02_embed" class="iri_player_embed"> </div> |
127 |
127 |
128 <script type="text/javascript"> |
128 <script type="text/javascript"> |
129 var configMP = { |
129 var configMP = { |
130 metadata:{ |
130 metadata:{ |
131 format:'cinelab', |
131 format:'cinelab', |
132 src:'<?php echo($config['metadata']); ?>', |
132 src:'<?php echo($translate->_('config__metadata')); ?>', |
133 load:'jsonp'}, |
133 load:'jsonp'}, |
134 gui:{ |
134 gui:{ |
135 width:<?php echo($config['player_width']); ?>, |
135 width:<?php echo($config['player_width']); ?>, |
136 height:<?php echo($config['player_height']); ?>, |
136 height:<?php echo($config['player_height']); ?>, |
137 mode:'video', |
137 mode:'video', |