Documentation is available at index-mobile.php
- <?php
- $lDreambox = new Dreambox(Settings::getDreamboxIP(),"enigma2",array(Settings::getDreamboxUserName(),Settings::getDreamboxPassword()),$pRenew);
- if ($lDreambox->isOnline()) {
- $lDreambox->loadBoutiques();
- $lDreambox->loadChannels();
- }
- if (isset($_GET["mobile"]) && isset($_GET["speed"])) {
- $lVLCObj = new VLCServer();
- $lVLCObj->setDimentions("176x144");
- $lVLCObj->setChannel($lSelectedChannel);
- $lVLCObj->setAudioCodec("mp3");
- $lVLCObj->setVideoCodec("H263");
- $lVLCObj->setBitrate("60");
- $lVLCObj->setAudioBitrate("20");
- $lVLCObj->setFPS("10");
- $lVLCObj->setStreamType("rtp");
- $lDebug = $lVLCObj->stopServer();
- $lDebug = $lVLCObj->startServer(1);
- sleep(3);
- header("Location: rtsp://theyosh.nl:8889/restream.sdp");
- exit;
- }
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html>
- <head>
- <title><?php echo Settings::getProgramName() . " Mobile version (" . Settings::getVersionNumber() . ")"; ?> [BETA]</title>
- <meta name="generator" content="Bluefish 1.0.7"/>
- <meta name="author" content="Joshua Rubingh"/>
- <meta name="copyright" content="2007 TheYOSH" />
- <meta name="keywords" content="Restream video from a Dreambox" />
- <meta name="description" content="" />
- <link rel="stylesheet" type="text/css" media="screen" href="style.mobile.css" />
- </head>
- <body>
- <h1>Mobile testing</h1>
- <p>Streams with the rtsp protocol. It should play on an iPhone.</p>
- <a href="?mobile=1&speed=1" title="Watch">Watch</a><br />
- </body>
- </html>
Documentation generated on Tue, 24 Jun 2008 18:59:34 +0200 by phpDocumentor 1.3.0RC3