Megavideo Direct Link Generator

Results 1 to 5 of 5
  1. #1
    Account Upgraded | Title Enabled! majidemo is offline
    MemberRank
    Sep 2008 Join Date
    localhostLocation
    659Posts

    Megavideo Direct Link Generator

    This is a php code that will give you a direct link of a megavideo file so you can download it directly..

    download codes from pastebin.

    I cant make this work on a remote host, but this works well on localhost..

    how to use this? download any webserver like XAMPP or WAMP.

    install the webserver & create a .php file and encode the php codes that i have provided..

    then you can go ahead use it :)

    to advance PHP coders, can you help me make this work on a remote host?thnx.
    Last edited by majidemo; 11-03-11 at 11:47 AM.


  2. #2
    Apprentice JapyDooge is offline
    MemberRank
    Nov 2008 Join Date
    The NetherlandsLocation
    20Posts

    Re: Megavideo Direct Link Generator

    Why not a header_redirect() to the flv file? :o

    Now you tunnel everything trough your script, wich generates a lot of traffic.

  3. #3
    Account Upgraded | Title Enabled! majidemo is offline
    MemberRank
    Sep 2008 Join Date
    localhostLocation
    659Posts

    Re: Megavideo Direct Link Generator

    can you give me better script sir? :) tnx. im not really good at scripts.. this are different tutorials i put together.. can you rescript for me?

    ---------- Post added at 07:55 PM ---------- Previous post was at 06:56 PM ----------

    this is actually what im after..
    Megavideor - Watch and download videos from MegaVideo without limits of 72 minutes.

    im not after the download but the streaming.. allowing me to create a website that gets the direct link from megavideo and uses my own player to play it..

    i like how their site, gives you a streaming and a download link of it..

    the reason why i cant just use the direct link i get is because the link depends on the person viewing..

    ---------- Post added at 08:08 PM ---------- Previous post was at 07:55 PM ----------

    i currently have this code for the player.

    my site is found @ http://streamrice.pcriot.com/streamr...eo_id=VEDGUSDS

    it actually works on my LOCALHOST, but when i uploaded it to streamrice.net it doesnt work anymore..

    PHP Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <?php include("megavideo.php"); ?>


    <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <title>Demo</title>
    <script type="text/javascript" src="swfobject.js"></script>
    <script type="text/javascript" src="jwplayer.js"></script>
    <script type="text/javascript" src="../js/direct_megavideo_flv_lin.user.js"></script>
    </head>

    <body style="margin-top: 80px;">
    <center>
    <h1 style="font-family: Arial;">Stream Rice Player(beta) </h1>

    <h2 style="font-family: Arial;"><a href="<?php echo $video_url?>"><?php echo $title?></a> | <?php echo sec2hms($runtime)?> | <?php echo ByteSize($size)?></h2>

    <div id="jwplayer" style="padding: 0px; background: #000; width: 640px; height: 480px; margin: 10px 0px 10px 0px; border: 4px solid #666;">Loading Video</div>
    <script type="text/javascript">

      var so = new SWFObject('player.swf','mpl','640','480','9');
      so.addParam('allowfullscreen','true');
      so.addParam('allowscriptaccess','always');
      so.addParam('wmode','transparent');
      so.addVariable('file','<?php echo $video_url?>');
      so.addVariable('image','http://a6.sphotos.ak.fbcdn.net/hphotos-ak-ash1/179043_148912381829723_148904085163886_245656_2119288_n.jpg');
      so.addVariable('backcolor','000000');
      so.addVariable('frontcolor','FFFFFF');
      so.addVariable('lightcolor','FFFFFF');
      so.addVariable('screencolor','000000');
      so.addVariable('skin','glow.zip');
      so.addVariable('bufferlength','5');
      so.addVariable('volume','100');
      so.addVariable('icons','true');
      so.addVariable('controlbar','over');
      so.addVariable('stretching','uniform');
      so.addVariable('autostart','false');
      so.addVariable('abouttext','Stream Rice');
      so.addVariable('aboutlink','http://streamrice.pcriot.com/wordpress/');
      so.addVariable('logo.file','logo-test.png');
      so.addVariable('logo.position','top-left');
      so.addVariable('logo.link','http://streamrice.pcriot.com/wordpress/');
      so.addVariable('logo.linktarget','_blank');
      so.addVariable('logo.hide','false');
      so.addVariable('logo.timeout','5');
      so.addVariable('plugins', 'captions-2,ltas');
      so.addVariable('captions.file', 'http://streamrice.pcriot.com/bakerking23.srt');
      so.addVariable('ltas.cc', 'idmiaziebdnyhds');
      so.write('jwplayer');

    </script> 
    </center>

    </body>

    </html>

  4. #4
    Apprentice JapyDooge is offline
    MemberRank
    Nov 2008 Join Date
    The NetherlandsLocation
    20Posts

    Re: Megavideo Direct Link Generator

    Ahhh so they are using a hotlink protection, hmm...

    I can see what i can do, but i don't have time today :)
    Maybe next week :)

  5. #5
    Account Upgraded | Title Enabled! majidemo is offline
    MemberRank
    Sep 2008 Join Date
    localhostLocation
    659Posts

    Re: Megavideo Direct Link Generator

    ooh thanks :)



Advertisement