XFileSharing Pro - Mp3 embed

Message
Author
Arthur
Posts: 74
Joined: Dec 04, 2009 12:00 am

Mp3 embed

#1 Postby Arthur » May 27, 2010 4:30 am

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.

ankurs
Posts: 1054
Joined: Mar 10, 2009 2:34 am

Re: Mp3 embed

#2 Postby ankurs » May 27, 2010 5:08 am

Arthur wrote:I have Expire temp links set to 1 hour so it needs to be done like the video player I think.
do you host very small size files only ?

Arthur
Posts: 74
Joined: Dec 04, 2009 12:00 am

#3 Postby Arthur » May 27, 2010 3:35 pm

what does that matter... usually mp3's go from 3 to 15 mb

ankurs
Posts: 1054
Joined: Mar 10, 2009 2:34 am

#4 Postby ankurs » May 28, 2010 5:02 am

Arthur wrote:what does that matter... usually mp3's go from 3 to 15 mb
thats what i was asking, if you are mp3 (small size) only host then that 1 hour time is ok; but if you host 100-200mb files then that 1hr is too less for lot of users who are on a slower connection.

naga
Posts: 45
Joined: Dec 22, 2008 3:40 pm

#5 Postby naga » May 29, 2010 11:24 am

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

Code: Select all

$divxpl = substr $file->{file_name}, -3, 3;
if($divxpl eq "mp3")
{
$divxpl = "mp3";
}
else
{
$divxpl = "";
}
then in download2.html

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>

hosterto
Posts: 39
Joined: May 31, 2010 2:15 pm

#6 Postby hosterto » Jun 27, 2010 10:16 pm

worked with 1.7 ?

hosterto
Posts: 39
Joined: May 31, 2010 2:15 pm

#7 Postby hosterto » Jul 12, 2010 11:17 am

we coded anything by ourself look here:

http://www.hoster.to/bn7vwjygp4pq/Ryan_ ... t.mp3.html

Arthur
Posts: 74
Joined: Dec 04, 2009 12:00 am

#8 Postby Arthur » Jul 15, 2010 4:18 pm

hoster did you do this with 1.7? and it worked? or what did you do cause Im on 1.7 also

hosterto
Posts: 39
Joined: May 31, 2010 2:15 pm

#9 Postby hosterto » Jul 15, 2010 5:20 pm

xes thats 1.7