Streaming MP3s from Playlist in JW Flash Video Player
Jeroen Wijering's Flash Video Player ( http://www.jeroenwijering.com/?item=Flash_Video_Player) allows you to specify a playlist of tracks in XSPF format. However, for streaming mp3s from Red5 the sample playlist that comes with the player requires a minor change.
You can stream mp3s using the oflaDemo in the Red5 distribution. Once you have Red5 running, place your mp3s in the oflaDemo/streams folder. If you're using the war version of red5, place the mp3s in webapps/red5/streams. You can download the player here:.
Back to the player, in the flash_flv_player directory, modify the playlist.xml file. Move the name of the file to be streamed from the id attribute of the location URL into a new element named 'identifier'.
<track> <title>I've Got a Tiger by the Tail</title> <creator>Buck Owens</creator> <location>rtmp://localhost/oflaDemo</location> <identifier>tiger-by-the-tail.mp3</identifier> </track>
The flash video samples on oflaDemo play properly with the ID in the url (localhost/oflaDemo?id=Spiderman3_trailer_300) but the MP3s do not play from the playist without adding the filename to the 'identifier' element.
Attachments
-
kirdergartenmp3.mp3
(311.3 KB) - added by hectorcm
2 years ago.
