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
HTML5 Embedded Video & Audio Player - BBCode Details »»
HTML5 Embedded Video & Audio Player - BBCode
Version: 1.00, by Coop1979 Coop1979 is offline
Developer Last Online: Apr 2012 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 4.0.x Rating:
Released: 03-22-2010 Last Update: Never Installs: 20
Re-useable Code Translations  
No support by the author.

This will work on all versions of VB.

With support for HTML5 in FireFox, Safari, and Google Chrome, it's now very easy to embed videos or audio on your site without the need for a lot of special coding or plug-ins. The <video> tag is supposed to replace Flash by linking to video files in the same way that the <img> tag links to images. The only catch is that right now the video files have to be in either .ogg, .ogv, .oga, or .ogx formats. These are all open source formats and easy to find converters for.

Instructions:

Go to your AdminCP, look under Custom BB Codes, then click Add New BB Code.

Title: HTML5 Video
BB Code Tag Name: video
Replacement: <video src="{param}" width="640" height="360" controls>
Your Browser does not support the video tag, upgrade to Firefox 3.5+, Google Chrome, or Safari.</video>
Example: [video]http://upload.wikimedia.org/wikipedia/commons/9/9d/Roomba_video.ogv[/video]
Description: Use this code to embed ogv HTML5 videos.

Click "Save" and...
Done!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 05-27-2010, 08:27 AM
Frondy's Avatar
Frondy Frondy is offline
 
Join Date: Feb 2009
Location: Zagreb, Croatia
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is already [video] tag in VB4, could it be a problem?
Reply With Quote
  #13  
Old 06-02-2010, 12:59 AM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by War.Frog View Post

Thanks ..

Downloaded it, but I don't see any options in this program to convert to .ogg, .ogv, .oga, or .ogx formats?

Regards,
Badger

Edit: NM... found it.. It's called "Theora" ... going to do a conversion from WMV and try this ...
Reply With Quote
  #14  
Old 06-02-2010, 02:01 AM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Used their converter to convert a small MP4 file to OGV file type and it won't play with the BBCode used in this mod....

Any ideas anyone?

Thanks ..

Regards,
Badger
Reply With Quote
  #15  
Old 06-08-2010, 12:54 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Note: Apple just released a new Safari Version 5.0 (6533.16) for OSX Leopard and it plays ALL the videos I've converted with the "microconverter" software I referred to above. The previous version didn't work with HTML5 videos.

FireFox 3.6.3 on OSX Leopard plays the demo video used for this mod, but NONE of the converted videos.

IE8 under Windows XP just sits there and says "loading" with ALL the videos ...

I think HTML5 is the future for videos under vBulletin 4 (we're testing this under v4.03), but obviously all browser platforms under all operating systems need to support the standard properly.

Just my opinion ...

Regards,
Badger
Reply With Quote
  #16  
Old 03-25-2011, 01:38 AM
camoit camoit is offline
 
Join Date: Feb 2011
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is cool. Do you have a embed for windows midea player for live streamming video or audio? I havent fornd one that will work yet.
Reply With Quote
  #17  
Old 05-08-2011, 12:52 PM
gopherhockey's Avatar
gopherhockey gopherhockey is offline
 
Join Date: Jul 2002
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is not working. First, there is already a type video, so you can't just save it as suggested above. The video BB code has a lot of options for different providers, such as hulu, youtube, google etc. It seems the best way to do this is to edit that template and modify the services that can handle HTML5 as suggested here: https://vborg.vbsupport.ru/showthread.php?t=261336

I tested with youtube and get just a blank white screen.
Reply With Quote
  #18  
Old 01-31-2012, 05:14 AM
DaffyDuck DaffyDuck is offline
 
Join Date: Jul 2006
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This really needs some modifications to work - first of all, the best way would be have it specify a different video shortcode, so as not to conflict with the [video] shortcode that is part of vB, at this time. I'd suggest something like [h5video] or [html5video].

Furthermore, unlike the original description, which says "The only catch is that right now the video files have to be in either .ogg, .ogv, .oga, or .ogx formats', HTML5 video supports a far wider variety of video formats: H.264 (video) and AAC (audio) are the preferred formats, and supported on Apple Safari, iPad and iPhone MobileSafari, and any webkit browsers (Android); you only need to worry about ogg if you are stuck with Firefox or Opera, and they stupidly dogmatic non-standard codec; or simply support Google's webM.

There are converters for most of these - I have found that H.264/AAC provide for the smallest files, at the highest quality, using low-bandwidth the best; ogg will invariably yield the worst quality and the largest files - stay away if you can; webM is 'okay'. It's basically the long abandoned On8 video codec - meh.

I need something like this to embed HTML5 H.264/AAC video, with smart fallback to Flash, or webM. Ideally, with a smart Javascript controller overlay - there are some great such frameworks that provide this, like Projekktor or MediaElement.js, which I was hoping someone would make a vb Plugin with.
Reply With Quote
  #19  
Old 02-07-2012, 09:23 PM
Bisha's Avatar
Bisha Bisha is offline
 
Join Date: Mar 2006
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

but if we use [VIDEO] as tag, will the video tag work also for youtube and other?
Reply With Quote
  #20  
Old 11-10-2014, 05:09 PM
brandondrury brandondrury is offline
 
Join Date: Oct 2005
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not having any luck getting this to work in Opera, iPad, or iPhone for audio. It seems like it's the attachment URL format which is a query string and not a "mp3" file. Anyone else had this problem?

Brandon
Reply With Quote
  #21  
Old 02-28-2021, 08:40 AM
blackheartMA blackheartMA is offline
 
Join Date: Feb 2021
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this code is not working on Google chormo and Ie edge .. just working on Firefox
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 09:35 PM.


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.05331 seconds
  • Memory Usage 2,322KB
  • Queries Executed 26 (?)
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
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete