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>