ivytony Posted January 21, 2009 Share Posted January 21, 2009 I am trying to hide the FLV video path in the clip bucket video-sharing script by doing this: 1. This is the JW FLV Player embedding code in an HTML page (see http://www.rcholic.net/rcholic.htm) <embed src="http://www.rcholic.net/player/jwflvplayer.swf" width="425" height="345" bgcolor="undefined" allowscriptaccess="always" allowfullscreen="true" flashvars="file=http://www.rcholic.net/rcholic.php?v=-215459672.flv" /> 2. I constructed a function that convert the video code (-215459672.flv in this case) to FLV path and return the video in an XML play list. (see http://www.rcholic.net/rcholic.php) <?php function get_rcholic_video_link(){ $flv_details = $_GET['v']; $flv_noext = substr($flv_details, 0, strrpos($flv_details, '.')); $big_thumb = 'http://www.rcholic.net/files/thumbs/'.$flv_noext.'-big.jpg'; $baseurl = 'http://www.rcholic.net'; //return $big_thumb; die('<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/"> <channel> <title></title> <link></link> <item> <title></title> <media:content url="http://www.rcholic.net/files/videos/'. $flv_noext .'.flv" type="video/x-flv" /> <media:thumbnail url="'.$big_thumb.'" /> </item> </channel> </rss> '); } get_rcholic_video_link(); ?> But the embedding code for JW FLV player doesn't work. Could someone give me some help? Thanks Link to comment https://forums.phpfreaks.com/topic/141847-my-code-doesnt-work-but-no-error/ Share on other sites More sharing options...
DeanWhitehouse Posted January 21, 2009 Share Posted January 21, 2009 Use echo or print, not die Link to comment https://forums.phpfreaks.com/topic/141847-my-code-doesnt-work-but-no-error/#findComment-742708 Share on other sites More sharing options...
DeanWhitehouse Posted January 21, 2009 Share Posted January 21, 2009 Also are you sure that your mod_rewrite works properly? Link to comment https://forums.phpfreaks.com/topic/141847-my-code-doesnt-work-but-no-error/#findComment-742716 Share on other sites More sharing options...
ivytony Posted January 21, 2009 Author Share Posted January 21, 2009 Also are you sure that your mod_rewrite works properly? yes, quite sure about that. Because the url of my clip bucket site is rewritten very clean. see http://www.rcholic.net Link to comment https://forums.phpfreaks.com/topic/141847-my-code-doesnt-work-but-no-error/#findComment-742720 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.