|
1 <?php |
|
2 |
|
3 /** |
|
4 * include some common code (like we did in the 90s) |
|
5 * People still do this? ;) |
|
6 */ |
|
7 $rep = $_REQUEST['rep']; |
|
8 include_once dirname(__FILE__).'/'.$rep.'/config.php'; |
|
9 // configuration |
|
10 include 'common.php'; |
|
11 |
|
12 // todo : |
|
13 // - gestion du parent.document.location mediafragment |
|
14 // - limite taille vertical embed |
|
15 // - ajouter la polemic timline en dessous de la video |
|
16 |
|
17 ?> |
|
18 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
|
19 <html lang="en"> |
|
20 <head> |
|
21 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|
22 <title>RSLN - Polemic player embed page</title> |
|
23 |
|
24 <!-- JAVASCRIPT --> |
|
25 <script type="text/javascript" src="<?php echo(registry_url('jquery','js'))?>"></script> |
|
26 <script type="text/javascript"> |
|
27 $.noConflict(); |
|
28 </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> |
|
31 |
|
32 <!-- FONT --> |
|
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'> |
|
35 <link href='<?php echo(registry_url('Geo','font'))?>' rel='stylesheet' type='text/css'> |
|
36 |
|
37 <style type="text/css"> |
|
38 body{ |
|
39 padding:0px; |
|
40 margin:0px; |
|
41 } |
|
42 .tooltip{ |
|
43 z-index: 10000000000; |
|
44 } |
|
45 #tip{ |
|
46 position : absolute; |
|
47 padding : 3px; |
|
48 z-index: 10000000000; |
|
49 max-width: 200px; |
|
50 } |
|
51 #tip { |
|
52 display: none; |
|
53 background: transparent url("<?php echo(URL_ROOT);?>images/white_arrow_long.png"); |
|
54 font-size: 12px; |
|
55 height: 125px; |
|
56 width: 180px; |
|
57 padding: 10px; |
|
58 padding-left: 15px; |
|
59 padding-top: 15px; |
|
60 padding-right: 15px; |
|
61 color: black; |
|
62 z-index: 10000000000; |
|
63 font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; |
|
64 overflow:hidden; |
|
65 } |
|
66 #chartTimeline{ |
|
67 z-index: 9; |
|
68 position : absolute; |
|
69 } |
|
70 |
|
71 </style> |
|
72 <script type="text/javascript"> |
|
73 |
|
74 var _gaq = _gaq || []; |
|
75 _gaq.push(['_setAccount', 'UA-23581291-1']); |
|
76 _gaq.push(['_trackPageview']); |
|
77 |
|
78 (function() { |
|
79 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
|
80 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
|
81 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
|
82 })(); |
|
83 |
|
84 </script> |
|
85 </head> |
|
86 |
|
87 <script type="text/javascript"> |
|
88 // Configuration Polemical Timeline |
|
89 var config = { |
|
90 target:"chartTimeline", |
|
91 x:8, |
|
92 y:418, |
|
93 width:<?php echo($config['player_width']); ?>, |
|
94 height:<?php echo($config['player_height']); ?>, |
|
95 heightmax:<?php echo($config['player_height']); ?>, |
|
96 duration:<?php echo($config['duration']); ?>, |
|
97 metadata:"<?php echo($config['metadata']); ?>" |
|
98 } |
|
99 </script> |
|
100 <script type='text/javascript' src='<?php echo(URL_ROOT);?>res/metadataplayer.polemic/src/js/polemic.js'></script> |
|
101 |
|
102 <body> |
|
103 <!-- tooltip --> |
|
104 <div id="tip"> |
|
105 <div id="tipcolor" style="height:10px;width:10px"></div> |
|
106 <div id="tiptext"></div> |
|
107 </div> |
|
108 |
|
109 <div class="root" > |
|
110 <div class="videoLivePlayer"> |
|
111 <div id="chartTimeline"> </div> |
|
112 <script type="text/javascript"> |
|
113 var paper = Raphael(document.getElementById("chartTimeline"),config.width, config.height); |
|
114 </script> |
|
115 <script type='text/javascript' src='<?php echo(URL_ROOT.$config['player']);?>'></script> |
|
116 <script type="text/javascript"> |
|
117 jQuery.extend(__IriSP.lib,{ |
|
118 jQueryToolTip:"<?php echo(registry_url('jquery-tools','js'));?>", |
|
119 jQueryUI:"<?php echo(registry_url('jquery-ui','js'));?>", |
|
120 swfObject:"<?php echo(registry_url('swfobject','js'));?>", |
|
121 cssjQueryUI:"<?php echo(registry_url('jquery-ui','css'));?>" |
|
122 }); |
|
123 </script> |
|
124 <div id="player_project_843fff80-6b50-11e0-8aef-00145ea49a02_embed" class="iri_player_embed"> </div> |
|
125 |
|
126 <script type="text/javascript"> |
|
127 var configMP = { |
|
128 metadata:{ |
|
129 format:'cinelab', |
|
130 src:'<?php echo($config['metadata']); ?>', |
|
131 load:'jsonp'}, |
|
132 gui:{ |
|
133 width:<?php echo($config['player_width']); ?>, |
|
134 height:<?php echo($config['player_height']); ?>, |
|
135 mode:'video', |
|
136 container:'player_project_843fff80-6b50-11e0-8aef-00145ea49a02_embed', |
|
137 debug:false, |
|
138 css:'<?php echo(URL_ROOT);?>res/css/LdtPlayer.css'}, |
|
139 |
|
140 player:{ |
|
141 type:'jwplayer', |
|
142 src:'<?php echo(URL_ROOT);?>res/mediaplayer/player.swf'} |
|
143 }; |
|
144 __IriSP.init(configMP); |
|
145 </script> |
|
146 </div> |
|
147 </div> |
|
148 </body> |
|
149 </html> |