Starting in "browser fullscreen"

2 replies [Last post]
jonwaller
Offline
Last seen: 1 year 27 weeks ago
Joined: 07/27/2010

I've downloaded and set up the player using PHP. It works great - well done for your hard work!

It is currently a 550x400 box on my page. Is it possible to start the player in "fullscreen browser" mode, such as you get when clicking the button on the top right? I've nothing else on my page, and if possible want people to stay in this "browser fullscreen" mode.

Any suggestions? I'd love a parameter such as "startFullscreen = true" or something like that. :)

Thanks

Jonathan

travist
travist's picture
Offline
Last seen: 10 weeks 2 days ago
Joined: 08/21/2009
You will need to do this in

You will need to do this in code. Maybe something like this....

<?php
  
include("OSMPlayer.php");
  
$player = new OSMPlayer(array(
     
'playlist' => 'playlist.xml'
  
));
?>

<html>
   <head>
      <title>Open Standard Media (OSM) Player: PHP Demo</title>
      <script type="text/javascript" src="jquery-ui/js/jquery.js"></script>
      <?php print $player->getHeader(); ?>
   </head>
   <body>
      <h2>Open Standard Media (OSM) Player</h2><br/>
      <?php print $player->getPlayer(); ?>
      <script type="text/javascript">
         jQuery(document).ready(function() {
            // make the player full screen at the start.
            jQuery.media.players.player.node.player.fullScreen( true );
         }
      </script>
   </body>
</html>

International Open Source Solutions
What can Alethia build for you?

shantelle1109
Offline
Last seen: 4 weeks 1 day ago
Joined: 12/23/2011
The issue of overall quality

The issue of overall quality aside, OSS has four inherent advantages over proprietary software. First, open-source software is considerably less expensive than proprietary alternatives.-Randall Alifano

Sponsors