Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Streaming Flash / Java Player for Your Site Details »»
Streaming Flash / Java Player for Your Site
Version: 1.00, by camoit camoit is offline
Developer Last Online: May 2014 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 4.1.11 Rating:
Released: 04-21-2012 Last Update: Never Installs: 6
Re-useable Code Additional Files Translations  
No support by the author.

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 CLICK HERE

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

File Type: zip Streaming Java Player.zip (118.2 KB, 66 views)

Screenshots

File Type: jpg javaPlayer.jpg (84.6 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
sweetpotato

Comments
  #2  
Old 04-23-2012, 05:12 PM
camoit camoit is offline
 
Join Date: Feb 2011
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Let me know how it works out for you, and if there is anything I need to change in the instructions.
Reply With Quote
  #3  
Old 04-25-2012, 02:55 AM
sweetpotato sweetpotato is offline
 
Join Date: Oct 2010
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Look very interesting, Can this play videos from CNN, BBC ?. Will try this at weekend.
Thank you,
Reply With Quote
  #4  
Old 04-25-2012, 03:57 AM
camoit camoit is offline
 
Join Date: Feb 2011
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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
Reply


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

Forum Jump


All times are GMT. The time now is 02:52 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04528 seconds
  • Memory Usage 2,264KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (1)post_thanks_box_bit
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (2)postbit_attachment
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete