MP3 MOD? - نوشته شده در (2624 Views)
Senior Member
leatherlips
مطلب: 1838
1838
I'd love to have an mp3 mod. I use the free player from www.longtailvideo.com on my site. My vision would be to have a tag like [mp3]www.whatever.com/song.mp3[/mp3] and have my player automatically be embeded in the post able to play the file.
I'll try to do it but in the meantime if anyone else more skilled could figure it out I'd really appreciate it! shy
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Advanced Member
Carefree
مطلب: 4224
4224
Look at this mod.
نوشته شده در
Senior Member
leatherlips
مطلب: 1838
1838
Carefree, yes, thank you. I have that mod on my forum and it works great. However, what I am wanting is a new tag: [mp3][/mp3] that would allow a user to place a url to an mp3 file in the middle of the tag and have it play in the jwplayer from longtailvideo.com.
An example of their code is:

Code:
<script type='text/javascript' src='/embed/swfobject.js'></script>

<div id='mediaspace'>This div will be replaced</div>

<script type='text/javascript'>
var s1 = new SWFObject('/jw/upload/player.swf','ply','470','300','9','#ffffff');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('wmode','opaque');
s1.addParam('flashvars','file=http://www.longtailvideo.com/jw/upload/bunny.mp3');
s1.write('mediaspace');
</script>
Or
Code:
<embed
src="/jw/upload/player.swf"
width="470"
height="300"
bgcolor="#ffffff"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="file=http://www.longtailvideo.com/jw/upload/bunny.mp3"
/>
I'm not sure which version of the code would work best with Snitz and I'm also not sure how to make the above links know how to recognize what a user would put in the mp3 tags.
نوشته شده در
Senior Member
leatherlips
مطلب: 1838
1838
I was searching the net and came across exactly what I want but the instructions are for a different type of forum software. Maybe this will provide a clue: http://www.phpbb.com/community/viewtopic.php?f=46&t=607524
نوشته شده در
Senior Member
leatherlips
مطلب: 1838
1838
More searching... tongue
I just came across this forum and they have exactly what I want! (but with a different player)

I emailed them to see if they'll send me their code.
نوشته شده در
New Member
kyodai
مطلب: 74
74
I have a custom embed for wmv, but as it uses media player embedding it should work fine for mp3, too. It is a bit complicated though as i wanted the embedded object NOT to be available for users not logged in plus i did it with an iframe that fetches the content from another domain (my backend). As i use my own backend server as a streaming media server i have made the tag so it reads only the filename and puts it after the domain/path of my backend. Sounds odd but that way you ensure users only embed content uploaded to your own backend and can't embed from phishy 3rd party sites or so. Plus you get all the media files yourself. If you want a demo just log in to hiddenbelow.com and look at the cinema (We stream public domain movies for members there). If you like it i could go through the pain of writing a mod instruction sheet for this, but it is a tad more complicated then some otehr solutions.
نوشته شده در
Senior Member
leatherlips
مطلب: 1838
1838
Well, I've figured it out! smile I'm currently not using the jwplayer, but that is not a big deal.
I will write this up as a mod soon so others can use it if they want.
نوشته شده در
Senior Member
leatherlips
مطلب: 1838
1838
I'm going to write two sets of instructions for this MOD. Because I modeled after the Online Video MOD, my first set of instructions are an add on to that mod. I am waiting to post this on Snitzbitz until someone can test it out for me. If it works OK then I'll post it there along with a "stand alone" version that does not require the Online Video MOD.
If you have the Online Video MOD and want to add this MP3 feature to it, you can get the directions from here.
If you want to see a working example, you can see it on my test forum here.
Please provide feedback here if you try it out. That way I can work out any bugs before posting it at Snitzbitz. Thanks!
نوشته شده در
Advanced Member
Carefree
مطلب: 4224
4224
I've tested it and got it working. I'll send you mail with comments.
نوشته شده در
Senior Member
leatherlips
مطلب: 1838
1838
I've finished the MP3 MOD.
The standalone version is here.
The addon version for the Online Videos MOD is here.
Let me know what you think!
نوشته شده در
Advanced Member
Carefree
مطلب: 4224
4224
SnitzBitz is down.
شما باید یک متن وارد کنید