The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Embed MP3 in post using flash player Details »» | |||||||||||||||||||||||||
This is somthing I created rather quickly because I wanted somthing small and effective for streaming MP3's in a post. I was searching the net for a nice small MP3 player to embed into a post and I found a nice FREE one over at 1pixelout.net. I did NOT create the player, I only created the BB code for this hack.
This takes about 2 minutes to prepare and get working. Follow these steps 1. Download the Audio Player here http://www.1pixelout.net/code/audio-...ugin/#examples 2. Unzip and upload the files for the player to your host. 3. Add new BB code with the following information Title: FlashPlayer Tag: mp3 Replacement: Code:
<script language="JavaScript" src="http://www.yourhost.com.com/audio/audio-player.js"></script> <object type="application/x-shockwave-flash" data="http://www.yourhost.com/audio/player.swf" id="audioplayer4" height="24" width="290"> <param name="movie" value="http://www.yourhost.com/audio/player.swf"> <param name="FlashVars" value="playerID=4&soundFile={param}"> <param name="quality" value="high"> <param name="menu" value="false"> <param name="wmode" value="transparent"> </object> Example: [mp3]http://www.hd-trailers.org/song.mp3[/mp3] *"http://" must be added for this to work properly. Use Option: No Button Image: See attachment How to use: Simply find a link to an mp3 file and wrap the tags around it! That's it! BE SURE TO CLICK INSTALLED Show Your Support
|
Благодарность от: | ||
goxy63 |
Comments |
#152
|
|||
|
|||
Awesome, thanks heaps. Got the colours sorted.
Now just to work out the original problem playing mp3's from a URL. and not having to host the file. Thanks again for all your help. Does yours work via a URL wrapped in tags mp3 tags[][/] Chris |
#153
|
||||
|
||||
I just place the URL (no matter where it is hosted) within the mp3 tags and it works. Not sure if you edited the code in some way.
On my custom pages like this one.... Walt Disney World - Magic Kingdom Attractions .... I had to hardcode the url into the code and using this code ... Code:
<script language="JavaScript" src="http://www.fakedomain.com/myname/audio/audio-player.js"></script> <object type="application/x-shockwave-flash" data="http://www.fakedomain.com/myname/audio/player.swf" id="audioplayer1" height="24" width="290"> <param name="movie" value="http://www.fakedomain.com/myname/audio/player.swf"> <param name="FlashVars" value="playerID=audioplayer1&soundFile=http://www.fakedomain.com/myname/audio/music.mp3"> <param name="quality" value="high"> <param name="menu" value="false"> <param name="wmode" value="transparent"> </object> ....from this page: http://www.macloo.com/examples/audio_player/index.html |
#154
|
|||
|
|||
I wonder what I have done wrong then, I think I'll have to sleep on it and try again when I'm fresh. I did just notice you have. Slightly different code then me. Audioplayer1 or something like that I don't have that in my code.
Thanks heaps for your help so far. I'll let you know how I go tomorrow. Chris |
#155
|
||||
|
||||
Chris, what's the mp3 file URL that you're using and I'll test it on my site. Have a goodnight!
|
#156
|
|||
|
|||
<a href="http://www.supload.com/listen?s=LCr6bv" target="_blank">http://www.supload.com/listen?s=LCr6bv</a>
good idea I didn't even think that the link might be wrong. Here it is above. I didn't include the mp3 wraps although I do have them on my site. Do you have a working URL I can also test. Many thanks once again chris |
#157
|
||||
|
||||
Chris, that's not an mp3 file. Did you download it and change it to an mp3 file and then upload it on your own site?
|
#158
|
|||
|
|||
Here is what I did.
We made the video you find on my thread from You tube, I then used a you tube to mp3 convertor to create the mp3 file. Then i googled audio hosting and found "supload.com" so i uploaded the mp3 file to their site. The URL that comes up when its playing through supload is http://www.supload.com/listen?s=LCr6bv, so its not a mp3 file but wouldnt it be the mp3 URL The links that work are the same mp3 files uploaded to my hosting server, I have done nothing extra to them. Maybe I just have this totally wrong. As embarrassing as it is to ask, what does a mp3 URL look like and where can I find one :erm:?? Again thanks for your efforts in helping me sort this out.:up: Chris |
#159
|
||||
|
||||
Chris, as far as I'm aware, it has to be a URL that ends in ".mp3"
So, it would be "http://www.exampledomainname.com/audio/examplemusic.mp3" and that should work. So, instead of uploading it somewhere to save on bandwidth, you're going to have to upload it to your own server (or another service that will still allow the .mp3 in the URL) and use it that way. I'm not 100% sure, but someone else may be able to jump in and answer that one for you. |
#160
|
|||
|
|||
I finally got it sorted, seems it was working all along, stupid me just wasnt using the correct URL's
I tried many different audio hosting sites, but the one i got it to work with was www.hotlinkfiles.com Thank you to everyone, your help is............... well very helpful. Thanks again Chris |
#161
|
|||
|
|||
Quote:
Thanks again for you patience with me. Chris |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|