Register to Reply
Results 1 to 3 of 3

Thread: html5 video tag

  1. Thread Starter #1
    Junior Member smoothy321's Avatar
    Click to Expand
    Join Date
    Oct 2018
    Posts
    18
    vB Version
    4.2.x
    Likes
    4
    Liked 1 Time in 1 Post
    Gender
    Male

    html5 video tag

    Do you know what this code may be here on this post? I can't see it cause you have to be a registered member. It's code for embedding the html5 video tag or JWplayer in style manager. https://www.vbulletin.org/forum/show...7&postcount=10 Thanks!
    code.jpg

  2. #2
    Administrator Tempus's Avatar
    Click to Expand
    Join Date
    Oct 2011
    Posts
    6,052
    vB Version
    4.2.x
    Likes
    1,974
    Liked 2,936 Times in 1,407 Posts
    Gender
    Male
    if all you want is to allow your users to upload .mp4 format videos to the server/database, then you could have them attach videos to a post and view it from there....


    firstly you will need to use a custom video player like a regular html5 <video> tag or jwplayer (just any ppapi video player that will play mp4's should work.... not a npapi video player like divx though as those are now considered not secure by most modern browsers...i.e. depreciated).


    secondly (if you havent already done this) you will need to allow mp4 files to be uploaded as an attachment, by going to "AdminCp>Attachments>Attachment Manager" submenu ... click "add a new extension", then add these values to the corrisponding fields:
    Extension = "mp4"
    Max File-size (in bytes) = "9999999999"
    Mime Type & Headers = "Content-Type: video/mp4"
    then Save


    now thirdly (and lastly) inside of "AdminCp>Styles & Templates>Style manager" find the master/parent style (or just go through each individual template) and select "Edit Template" in the drop down then click "go", now on the displayed list of templates find "Postbit Templates (double click it) > postbit_attachment (then double click it to 'edit' the templates code)" and type this below the line that ends with "</li>":


    For html5 video tag:
    Code:
    Only registered members can view code.



    For JWplayer:
    Code:
    Only registered members can view code.

    you can do the same thing with mp3s too but using an audio mp3 player instead (like the html5 audio tag or wimpy player)... its a bit of a hacked up way of doing it but i hope that helped anyway :) ... it works well for me and I'm using vbulletin 4.2.4 ... it may even work for vbulletin 5 not sure
    The Small Print
    Our staff assume members have read the rules and will not accept ignorance as an excuse for not following the them.
    The breaking of any rule WILL lead to you being warned or even banned without notice so don't risk it!


  3. Thread Starter #3
    Junior Member smoothy321's Avatar
    Click to Expand
    Join Date
    Oct 2018
    Posts
    18
    vB Version
    4.2.x
    Likes
    4
    Liked 1 Time in 1 Post
    Gender
    Male
    Thanks for the help! It's appreciated...

Register to Reply

Similar Threads

  1. IST Video BB Code
    By Tempus in forum vBulletin 4.x Add-ons
    Replies: 0
    Last Post: 20th Mar 2015, 17:45
  2. SOLVED
    How to all type video
    By boldherri in forum Solved Requests
    Replies: 16
    Last Post: 16th Aug 2014, 02:10
  3. Jplayer html5
    By actualmanx in forum vBulletin General Chat
    Replies: 6
    Last Post: 5th Nov 2012, 00:34
  4. Video BBCODE Expansion
    By Tempus in forum vBulletin 4.x Add-ons
    Replies: 0
    Last Post: 6th Apr 2012, 16:07

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •