0

Hi

I'm building a site that contains access to some mp3 files of people speaking English.

I would like a media player that is able to handle a variable that results from a database search.

I can use <a href etc> to link to the relevant file but would like to use a server-side player to stream the file, rather than the client's browser.

Something like Dewplayer would be perfect but it seems only to take a static file (maybe I'm wrong there).

The player appears within <object> tags, like this

echo '<object type="application/x-shockwave-flash" data="/player/dewplayer.swf" width="200" height="30" id="dewplayer" name="dewplayer">';
echo '<param name="movie" value="/player/dewplayer.swf" />';
echo '<param name="flashvars" [B]value="mp3=file.mp3[/B]" />';
echo '<param name="wmode" value="transparent" />';
echo '</object>';

(the code is freely downloadable so hope I'm not breaking any rules posting someone else's code here).

Is there a way I can specify a variable in value? If not, does anyone know of a player that I can use that does allow that?

Grateful for any help.

Thanks in advance.

Edited by Bazzaah: n/a

1
Contributor
1
Reply
2
Views
6 Years
Discussion Span
Last Post by Bazzaah
0

I got the answer shortly after posting this.

echo '<param name="flashvars" value="mp3=' . $row['wordfile'] . '" />';
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.