web/player_embed.php
changeset 1198 ff4b567d51f2
parent 940 843f96e4eebd
child 1199 bba2a67b9da2
equal deleted inserted replaced
1197:c9c502117eb6 1198:ff4b567d51f2
    42 <html lang="en">
    42 <html lang="en">
    43   <head>
    43   <head>
    44     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    44     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    45     <title>Polemic Tweet Embedded Player</title>
    45     <title>Polemic Tweet Embedded Player</title>
    46     <script type="text/javascript" src="<?php echo(registry_url('metadataplayer','js'));?>"></script>
    46     <script type="text/javascript" src="<?php echo(registry_url('metadataplayer','js'));?>"></script>
    47     
    47 
    48     <script type="text/javascript">
    48     <script type="text/javascript">
    49     IriSP.libFiles.defaultDir = "<?php echo(registry_url('libdir','js'));?>";
    49     IriSP.libFiles.defaultDir = "<?php echo(registry_url('libdir','js'));?>";
    50     IriSP.widgetsDir = "<?php echo(registry_url('ldtwidgets','js'));?>";
    50     IriSP.widgetsDir = "<?php echo(registry_url('ldtwidgets','js'));?>";
    51     IriSP.libFiles.locations.jwPlayerSWF = "<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf";
    51     IriSP.libFiles.locations.jwPlayerSWF = "<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf";
    52     IriSP.language = "<?php echo($actual) ?>";
    52     IriSP.language = "<?php echo($actual) ?>";
    53     
    53 
    54     var _metadata = {
    54     var _metadata = {
    55         url: '<?php echo get_metadata_url($metadata_url) ?>?callback=?',
    55         url: '<?php echo get_metadata_url($metadata_url) ?>?callback=?',
    56         format: 'ldt'
    56         format: 'ldt'
    57     };
    57     };
    58     var _config = {
    58     var _config = {
    95     <script type="text/javascript">
    95     <script type="text/javascript">
    96         var _gaq = _gaq || [];
    96         var _gaq = _gaq || [];
    97         _gaq.push(['_setAccount', 'UA-23581291-1']);
    97         _gaq.push(['_setAccount', 'UA-23581291-1']);
    98         _gaq.push(['_trackPageview', location.pathname + location.search + location.hash]);
    98         _gaq.push(['_trackPageview', location.pathname + location.search + location.hash]);
    99         _gaq.push(['_setAllowAnchor', true]);
    99         _gaq.push(['_setAllowAnchor', true]);
   100       
   100 
   101         (function() {
   101         (function() {
   102             var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
   102             var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
   103             ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
   103             ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
   104             var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
   104             var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
   105         })();
   105         })();
   116 	<script type="text/javascript">
   116 	<script type="text/javascript">
   117 		var _gaq = _gaq || [];
   117 		var _gaq = _gaq || [];
   118 		_gaq.push(['_setAccount', 'UA-23581291-1']);
   118 		_gaq.push(['_setAccount', 'UA-23581291-1']);
   119 		_gaq.push(['_trackPageview', location.pathname + location.search + location.hash]);
   119 		_gaq.push(['_trackPageview', location.pathname + location.search + location.hash]);
   120 		_gaq.push(['_setAllowAnchor', true]);
   120 		_gaq.push(['_setAllowAnchor', true]);
   121 	  
   121 
   122 		(function() {
   122 		(function() {
   123 		    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
   123 		    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
   124 		    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
   124 		    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
   125 		    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
   125 		    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
   126 		})();
   126 		})();
   127 	</script>
   127 	</script>
   128   </head>
   128   </head>
   129   
   129 
   130         <div id="LdtPlayer"></div>
   130         <div id="LdtPlayer"></div>
   131 <script type="text/javascript">
   131 <script type="text/javascript">
   132     var _myPlayer = new IriSP.Metadataplayer(_config);
   132     var _myPlayer = new IriSP.Metadataplayer(_config);
   133 </script>
   133 </script>
   134   </body>
   134   </body>