• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Updated bbcode_video template with available HTML5 Players

Admin

Well-Known Member
Staff member
Administrator
Brought to you by BirdOPrey5
The template bbcode_video is the one that decides what embed code is used for the built in video embedding sites.
This template relies mostly on Flash- only YouTube was ever updated to HTML5 in the stock bbcode_video template of VB 4.2.0.
This new edit has HTML5 Players available for Vimeo and Dailymotion as well. It also has the code there that was to help IE6 compatibility removed as 4.2.0 officially dropped support for IE6 anyway.
I have also made some of the video screens larger where appropriate.
The benefits of HTML5 players is they will work on iPads, iPhones, and all current Android/mobile devices. Flash does not.
To use this simply copy the code below and paste it into your template bbcode_video, deleting what used to be there.
If you have any trouble simply "revert" the template back to the original.
Repeat the above for each style you have.
New bbcode_video template (Tested on 4.2.0):
Code:
<vb:if condition="$provider == 'hulu'">
<object width="512" height="288">
<param name="movie" value="http://www.hulu.com/embed/{vb:raw code}"></param>
<param name="allowFullScreen" value="true"></param>
<embed src="http://www.hulu.com/embed/{vb:raw code}" type="application/x-shockwave-flash"  width="512" height="288" allowFullScreen="true"></embed>
</object>
<vb:elseif condition="$provider == 'youtube'" />
<iframe class="restrain" title="YouTube video player" width="640" height="390" src="//www.youtube.com/embed/{vb:raw code}?wmode={vb:raw wmode}" frameborder="0"></iframe>
<vb:elseif condition="$provider == 'youtube_share'" />
<iframe class="restrain" title="YouTube video player" width="640" height="390" src="//www.youtube.com/embed/{vb:raw code}?wmode={vb:raw wmode}" frameborder="0"></iframe>
<vb:elseif condition="$provider == 'vimeo'" />
<iframe src="http://player.vimeo.com/video/{vb:raw code}?portrait=0" width="640" height="360" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
<vb:elseif condition="$provider == 'dailymotion'" />
<iframe frameborder="0" width="640" height="390" src="http://www.dailymotion.com/embed/video/{vb:raw code}"></iframe>
    
<vb:elseif condition="$provider == 'metacafe'" />
<object class="restrain" type="application/x-shockwave-flash" width="640" height="380" data="http://www.metacafe.com/fplayer/{vb:raw code}.swf">
    <param name="movie" value="http://www.metacafe.com/fplayer/{vb:raw code}.swf" />
    <param name="wmode" value="{vb:raw wmode}" />
</object>
<vb:elseif condition="$provider == 'google'" />
<object class="restrain" type="application/x-shockwave-flash" width="400" height="326" data="http://video.google.com/googleplayer.swf?docid={vb:raw code}">
    <param name="movie" value="http://video.google.com/googleplayer.swf?docid={vb:raw code}" />
    <param name="wmode" value="{vb:raw wmode}" />
</object>
    
<vb:elseif condition="$provider == 'facebook'" />
<object class="restrain" type="application/x-shockwave-flash" width="576" height="432" data="//www.facebook.com/v/{vb:raw code}">
    <param name="movie" value="//www.facebook.com/v/{vb:raw code}" />
    <param name="wmode" value="{vb:raw wmode}" />
</object>
</vb:if>
The above has all known/available HTML5 players, but Flash players where HTML5 is not yet available.
Please "Mark as Installed" If you Use This. :)
 

Facebook Comments

New posts New threads New resources

Back
Top