Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.