Ask about general coding issues or problems here.
Moderators: macek, egami, gesf
- New php-forum User
- Posts: 1
- Joined: Thu May 09, 2013 8:38 pm
I have a php code which displays folder containing mp3 files. It has a text 'Play' which is now having a rawurldecoded of the file So whenever i click Play the file gets open in browsers associated player (quicktime) in another page.
What i want is, to get this file played with custom player which is embedded on same page. I have added the google player at the bottom of page but i cant make the google player's "flashvars="audioUrl=" to accept the rawurldecoded from the 'Play' link. This is probably because url is generated from php code and embedded player is http code.
How can i make this happen?
Play button from table:
<td><a href='$play'>Play</a></td> // where $play is rawurldecode
Google player code:
<embed type="application/x-shockwave-flash" src="http://www.google.com/reader/ui/3523697345-audio-player.swf";
quality="best" flashvars="audioUrl=xx" width="300" height="27"></embed>
I want that when user select 'Play' the associated url gets added to 'xx' so that google player play that mp3.
Return to “PHP coding => General”
Who is online
Users browsing this forum: No registered users and 3 guests