XFileSharing Pro - Mp3 embed
Mp3 embed
Is there a way to have the mp3 be embedded just like the video does now? I would like to have that option if it can be done? I have Expire temp links set to 1 hour so it needs to be done like the video player I think. If anyone can do this please let me know. I know zippyshare does it and they use this script.
Re: Mp3 embed
do you host very small size files only ?Arthur wrote:I have Expire temp links set to 1 hour so it needs to be done like the video player I think.
I did something like this , can't guarantee it will work for you because I use v1.5
//after $file->{direct_link} = something in index
then in download2.html
//after $file->{direct_link} = something in index
Code: Select all
$divxpl = substr $file->{file_name}, -3, 3;
if($divxpl eq "mp3")
{
$divxpl = "mp3";
}
else
{
$divxpl = "";
}
Code: Select all
<TMPL_IF divxpl>
<embed application=flash/something src="/yourjwplayer.swf?file=<TMPL_VAR direct_link>" width=something heigh=something></embed>
</TMPL_IF>