Back to vBulletin 4.x Add-ons

Streaming Flash / Java Player for Your Site
Mod Version: 1.00, by camoit

vB Version: 4.1.11 Rating: (0 vote - 0 average) Installs: 6
Released: 22 Apr 2012 Last Update: Never Downloads: 49
Not Supported Additional Files Re-usable Code Translations External Content  

Finally, a usable Streaming Java Player that I feel is good enough for everyone to use and be happy with.
I did actually find the end of the Internet while looking to make this work. It was built from some of the places of the Internet you need a 6" flopy disk to see your way around,
and punch tape to find your way out.
First off I will tell you I am not a coder nor do I clam to be, but I do know how to make things to work and make it simple enough for everyone to use, play with and enjoy.

This is a Streaming Java Player that can play a live streaming music for your users directly on a web page or in a thread with the click of a button.
I built this to work with my Juke Box HTML pages and for my VBulletin Board. I'm currently encoding with shoutcast in Mp3 @ 192 bit and it works fine with my set up.
I will do my best to help you but I'm not a web guru in any way. But it does work and it does play.
There are 2 files you will need to upload to your root directory.
swfobject1.js AND player.swf
1 file that will go into your vbulletin/image/ file or equivalent.
play-button.png
There is 1 file you will need to make some changes in before you copy it to your Custom BB Code replacement box.
That file is called player_UN_formated.html there are 2 main things in there that need to be changed. Once it's done all you do is copy and paste into the HTML Replacement Box.
The complete install readme has the info below.
If I can do it so can you.

To see and here a live demo just http://www.mightyram50.net/vbulletin/showthread.php/1067-Just-a-test-nothing-to-see?p=9554#post9554

<<<DOWN LOAD THE .ZIP FILE BELOW FOR EVERYTHING.>>>

Once installed you don't need to put in a url. Just click the button in the advanced editor.
It might be possible to allow for {pram} usage but I was not after that when I got it working.

Here is a Copy of install ReadMe text. Please keep in mind it is made for multiple platform use. From template file in SAM Broadcaster to VB and HTML.

Things to upload.
#1 upload the files called:
swfobject1.js
player.swf
Upload them to your web site root folder where your main site page is. OR
if uploading to a VBulletin Board then place it your boards root file.
The default name is normally called VBulletin.
<<<NOTE>>>
For VBulletin users upload the image play-button.png to your board.
Somthing like this:
/VBulletin/images/my_link_images/play-button.png
If you make a directory and place it in the images directory then the next time you
update your board you will not loose the image file

Things to configure:
Using an editor like notepad++ open the file called
player_UN_formated.html
#2
Find this line: <script src="/YORU_ROOT_FOLDER/swfobject1.js"></script>
and replace YORU_ROOT_FOLDER with the folder name you have your web page in. OR if you are
going to put this in a VBulletin Board, then name it what ever you may have changed it to.
The default name is normally called vBulletin..
<<<NOTE>>>
FOR VBulletin users the file called: player_UN_formated.html
Is the replacement HTML you will use in your Custom BB code inside the ACP.
<<<NOTE>>>
Regular HTML webpage users will place the code where they want the player to be located in there page.
<<<NOTE>>>
SAM Broadcaster users. You will place this in your _playing HTML or where ever you want to
by placing it in other _folders, IE: _header, _footer, _nav or what ever. It depends where you want it to go.
Keep in mind where you put it is where it will show on the page. You can always use the
<th align="right">
<th align="center">
<th align="left"> tags to locate it on your page.

#3
Now look 4 lines down for this line:
'file': 'http://www.YOUR_SITE.COM:8000/;stream.nsv',
Replace http://www.YOUR_SITE.COM:8000
with the site name and port number of the live stream you want to play.

#4
Things you can play with.
duration': '28800'
This is the time in seconds the player will play until it stops.
Default is 28800 = 480 minutes = 8 hours of play time. You can adjust this to what ever you like.

autostart': 'true'
Change to 'false' if you do not want auto start.

'allowscriptaccess': 'never',
Change to 'always' if you want people to be able to see your feed url. I suggest leaving this alone.
But you can change it to see what I'm talking about.

swfobject.embedSWF('player.swf', 'player', '300', '20', '9.0.124', false, flashvars, params, attributes);
You can change the size of the player here. 300 is the width 20 is hight.

#5
Last but not least the installing of the player_UN_formated.html
Now copy all of the text in the file called player_UN_formated.html
Paste it onto the web page where you want it to go as explained above.
<<<NOTE>>>
Sam Broadcaster users. once you paste the code in your template file just place it in your Sam_Html directory.
Then click the HTML generate button in sam to update your page OR just let the song change and it will upload automatically.
<<<NOTE>>>
For VBulletin users paste this in the custom BB Codes in the HTML replacement box.
In the custom BB Code
Things to configure
Title: call it what ever you want.
BB Code Tag Name: Music or what ever you wish. I keep it short for less typing.
Replacement: paste in the text from your editor we just configured. The file called player_UN_formated.html
Example: Just Click To Add Music To Your Post.
Description: Put in what ever you like.
Use {option} = NO
Button Image (Optional) = /VBulletin/images/my_link_images/play-button.png
Remove Tag If Empty = NO
Disable BB Code Within This BB Code = YES
Disable Smilies Within This BB Code = YES
Disable Word Wrapping Within This BB Code = YES
Disable Automatic Link Parsing Within This BB Code = YES

Hit save and you ready to test it.
GOOD LUCK.... HAVE FUN AND ENJOY

Download

File Type: %1$s Streaming Java Player.zip (118.2 KB, 68 downloads)

Screenshots

Click image for larger version
Name:	javaPlayer.jpg
Views:	267
Size:	84.6 KB
ID:	137960  

Similar Mods

Add-On Releases XEON Series - vbFLV Streaming Video Player vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024