Source for file index-mobile.php

Documentation is available at index-mobile.php

  1. <?php
  2.  
  3. $lDreambox = new Dreambox(Settings::getDreamboxIP(),"enigma2",array(Settings::getDreamboxUserName(),Settings::getDreamboxPassword()),$pRenew);
  4.  
  5. if ($lDreambox->isOnline()) {
  6. $lDreambox->loadBoutiques();
  7. $lDreambox->loadChannels();
  8. }
  9.  
  10. if (isset($_GET["mobile"]) && isset($_GET["speed"])) {
  11.  
  12. $lVLCObj = new VLCServer();
  13. $lVLCObj->setDimentions("176x144");
  14. $lVLCObj->setChannel($lSelectedChannel);
  15. $lVLCObj->setAudioCodec("mp3");
  16. $lVLCObj->setVideoCodec("H263");
  17. $lVLCObj->setBitrate("60");
  18. $lVLCObj->setAudioBitrate("20");
  19.  
  20. $lVLCObj->setFPS("10");
  21. $lVLCObj->setStreamType("rtp");
  22. $lDebug = $lVLCObj->stopServer();
  23. $lDebug = $lVLCObj->startServer(1);
  24. sleep(3);
  25.  
  26. header("Location: rtsp://theyosh.nl:8889/restream.sdp");
  27. exit;
  28.  
  29. }
  30. ?>
  31. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  32. <html>
  33. <head>
  34. <title><?php echo Settings::getProgramName() . " Mobile version (" . Settings::getVersionNumber() . ")"; ?> [BETA]</title>
  35. <meta name="generator" content="Bluefish 1.0.7"/>
  36. <meta name="author" content="Joshua Rubingh"/>
  37. <meta name="copyright" content="2007 TheYOSH" />
  38. <meta name="keywords" content="Restream video from a Dreambox" />
  39. <meta name="description" content="" />
  40. <link rel="stylesheet" type="text/css" media="screen" href="style.mobile.css" />
  41. </head>
  42. <body>
  43.  
  44. <h1>Mobile testing</h1>
  45. <p>Streams with the rtsp protocol. It should play on an iPhone.</p>
  46.  
  47. <a href="?mobile=1&speed=1" title="Watch">Watch</a><br />
  48.  
  49. </body>
  50. </html>

Documentation generated on Tue, 24 Jun 2008 18:59:34 +0200 by phpDocumentor 1.3.0RC3