another try to do the " action of play media files with hfs" i tryed this and found a interesting results....
try this solution, like rejetto sugested, i used the mp3 player that he used on his page...
from
http://creativecommons.org/please, teste, comment, improve it, comon guys, give it a try...
do this, restore the default template and add this section right bellow the entire [File] section. (or you can import the template inside the zip file)
[file.mp3]
<tr>
<td>
%new%
<a href="%item-url%">
<img src="/~img_file" />
%item-name%
</a>
%comment%
<td align=right>
%item-size%
<td align=right>
%item-modified%
<td align=right>
%item-dl-count%
<td align=right>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="300" height="200" id="mp3player"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" >
<param name="movie" value="http://%host%/mp3player.swf" />
<param name="flashvars" value="config=http://www.server.com/config.xml&file=http://www.server.com/playlist.xml" />
<embed src="http://%host%/mp3player.swf" width="300" height="20" name="mp3player"
flashvars="file=%item-url%"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
now just drag and drop the "mp3player.swf" to the root folder of your hfs virtual file system
and its done, you got a macromedia flash mp3 streaming player after every name of every file that is .mp3 :-)
this image show all the files as they must be...
but as i post before, this player, don´t support .m3u play list, you can add the support to the .m3u file play list using the default media plyer of the user browser(client-side) to play the streaming (do not forget to "UNCHECK" the pause streaming option inside the hfs menu or ini)
atached to this post, zip file that contains this
-the original flash_mp3_player with the original docs and the sources untouched
-there is a mod of the hfs default template to add the flash mp3 player called default+flashmp3.tpl
and here is the snapshot of this half working idea...
simples as this, but im still looking for a better streaming way, it seems that the solution to make everybody happy would be
-no java script (security)
-no embeded files on the page(huge page load)
maybe a flash player like this(only 10k) with .m3u suport, or rejetto could add the funtion to the hfs to generate also the XSPF playlist that is the only supported streaming playlist of every free flash mp3 player that i found,
atached
[attachment deleted by admin]