Register Members List Search Today's Posts Mark Forums Read

Mod Options
Streaming Flash / Java Player for Your Site Details »
Streaming Flash / Java Player for Your Site
Mod Version: 1.00, by camoit (Member) camoit is offline
Developer Last Online: May 2014 I like it Show Printable Version Email this Page

vB Version: 4.1.11 Rating: (0 vote - 0 average) Installs: 6
Released: 21 Apr 2012 Last Update: Never Downloads: 45
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.
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 CLICK HERE


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:
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.
For VBulletin users upload the image play-button.png to your board.
Somthing like this:
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
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..
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.
Regular HTML webpage users will place the code where they want the player to be located in there page.
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.

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.

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.

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.
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.
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.

Download Now

Only licensed members can download files, Click Here for more information.


Click image for larger version

Name:	javaPlayer.jpg
Views:	260
Size:	84.6 KB
ID:	137960  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Add-On Releases XEON Series - vbFLV Streaming Video Player syrus.xl vBulletin 3.6 Add-ons 114 09 Nov 2013 16:28

Old 23 Apr 2012, 18:12
camoit camoit is offline
Join Date: Feb 2011
Let me know how it works out for you, and if there is anything I need to change in the instructions.
Reply With Quote
Old 25 Apr 2012, 03:55
sweetpotato sweetpotato is offline
Join Date: Oct 2010
Look very interesting, Can this play videos from CNN, BBC ?. Will try this at weekend.
Thank you,
Reply With Quote
Old 25 Apr 2012, 04:57
camoit camoit is offline
Join Date: Feb 2011
Originally Posted by sweetpotato View Post
Look very interesting, Can this play videos from CNN, BBC ?. Will try this at weekend.
Thank you,
It has the video window. Just increase the size up from 300, 20 to somthing larger and you will see the window. But I think you will need to tell it to play a video. Find a video on another site and check the code by looking at the source. There is 1 line that will need to be changed. If you get it working please post what you did.
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 11:03.

Layout Options | Width: Wide Color: