View Single Post
Old 07-25-2010, 12:30 AM  
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
lots of sponsors have hosted flv's to make a random video very simply , heres a quick and easy way

STEP#1
save a list of flv urls as list.txt

example
Code:
http://cachecdn.realitykings.com/rk/mikeinbrazil/faces/jenifer.mini.flv
http://cachecdn.realitykings.com/rk/pure18/faces/teagan.mini.flv
http://cachecdn.realitykings.com/rk/bignaturals/faces/alia3.mini.flv
http://cachecdn.realitykings.com/rk/cumfiesta/faces/lou.mini.flv
http://cachecdn.realitykings.com/rk/mikeinbrazil/faces/sarra.mini.flv

put list.txt in a folder called randomswf

STEP#2
save the following code as index.php and place in same folder as list.txt

Code:
<?php
$list = file_get_contents("list.txt");
$ali = explode("\n",$list);
shuffle($ali);
$randomflv = $ali[1];
$out = "http://yoursite.com/randomswf/player.swf?file=$randomflv&autoplay=true";

header("Location: $out");
?>
STEP#3
Download an flv player like the JwPlayer, then rename to player.swf and put in the same folder as the above files.

Call it in your webpage like

Code:
<embed src=http://yoursite.com/randomswf/index.php?x=file.swf></embed>
or whatever embed code you want
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote