Jump to content

My code doesn't work, but no error


ivytony

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.