SHARE
TWEET

app.eyecode

a guest Feb 8th, 2015 209 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. function mediaplayer_run($params= '') {
  4.  
  5.         global $checknum;
  6.         global $myPid;
  7.         $currentUser;
  8.         $userDir = um('getCurrentUserDir');
  9.  
  10.  
  11.  
  12.         $myWindow = new Window(array(
  13.                 'name' => 'Gmail_WND',
  14.                 'father' => 'eyeApps',
  15.                 'cent' => 1,
  16.                 'width' => $_SESSION['SCREEN']['eyeApps']['width'],
  17.                 'height' => $_SESSION['SCREEN']['eyeApps']['height'],
  18.                 'x' => 0,
  19.                 'y' => 3,
  20.                 'title' => 'Mediaplayer',
  21.                 'sendResizeMsg'=>1,
  22.                 'sigResize'=>'Resize'
  23.         ));
  24.         $myWindow->show();
  25.        
  26. $myContainer = new Container(array(
  27.         'father' => Gmail_WND,
  28.         'height' => $height,
  29.         'name' => test,
  30.         'width' => 1000,
  31.         'x' => 1,
  32.         'y' => 20
  33. ));
  34.  
  35. $myHidden = new Hidden(array(
  36.         'father' => 'eyeIframize_Window_Content',
  37.         'name' => 'eyeIframize_Hidden',
  38.         'text' => $params[0]
  39. ));
  40. $myHidden->show();
  41.  
  42. $url = 'index.php?checknum=' . $checknum . '&msg=getFile';
  43.                
  44.                
  45. $myContainer->show();
  46. $myContainer->setContent('<html>
  47. <head>
  48. <script src="index.php?extern=apps/mediaplayer/jquery.js"></script>
  49. <script src="index.php?extern=apps/mediaplayer/mediaelement-and-player.min.js"></script>
  50. <link rel="stylesheet" href="index.php?extern=apps/mediaplayer/mediaelementplayer.css" />
  51. </head>
  52. <body>
  53.  
  54. <video width="50%" height="50%" controls="controls" preload="auto">
  55.    <!-- MP4 for Safari, IE9, iPhone, iPad, Android, and Windows Phone 7 -->
  56.  
  57.            <source type="video/mp4" src="' . htmlspecialchars($URL, ENT_QUOTES, 'UTF-8') . '" />
  58.    <!-- Optional: Add subtitles for each language -->
  59.    <track kind="subtitles" src="subtitles.srt" />
  60.    <!-- Optional: Add chapters -->
  61.    <track kind="chapters" src="chapters.srt" />
  62.    <!-- Flash fallback for non-HTML5 browsers without JavaScript -->
  63.    <object width="100%" height="100%" type="application/x-shockwave-flash" data="index.php?extern=apps/mediaplayer/flashmediaelement.swf">
  64.        <param name="movie" value="index.php?extern=apps/mediaplayer/flashmediaelement.swf" />
  65.        <param name="flashvars" value="controls=true&file='.$url.'" />
  66.        <!-- Image as a last resort -->
  67.        <img src="myvideo.jpg" width="100%" height="100%" title="No video playback capabilities" />
  68.    </object>
  69. </video>
  70. <script>
  71. // using jQuery
  72. $("video,audio").mediaelementplayer(/* Options */);
  73. </script>
  74. <p>'.$url.'</p>
  75. </body>
  76. </html>');
  77. }
  78.  
  79. function mediaplayer_end($params= '') {
  80.         reqLib('eyeWidgets','unserialize');
  81. }
  82. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top