Using Audio Captcha with XSPF player

If you want to use XSPF Music Player to play the files, here’s a way to go.

Create an XML-template in EE to work as playlist. In there use the {exp:audio_captcha:mp3link}-tag to output the URL.

Example:

Template site/playlist:

<?xml version="1.0" encoding="UTF-8" ?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<
trackList>    
<
track>
<
location>{exp:xml_encode}{exp:audio_captcha:mp3link}{/exp:xml_encode}</location>
</
track>              
</
trackList>
</
playlist>

Embed the player near to your captcha and link it to the playlist-template:

<object type="application/x-shockwave-flash" width="40" height="40"
data="http://localhost/musicplayer.swf?playlist_url=http://yourdomain.exp/index.php/site/playlist/">
<
param name="movie"
value="http://localhost/musicplayer.swf?playlist_url=http://yourdomain.exp/index.php/site/playlist/" />
</
object>

If you found something useful here and want to show your appreciation feel free to

or


Comments:

No comments yet.