Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-21-2015, 08:21 AM
Suiram Suiram is offline
 
Join Date: Jan 2009
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default MP4 video playback with clips hosted by you?

Is there a BB code that lets you play MP4 videos? I am not wanting to install any additional files. Since the "Cyb" breach, I do not install modifications. The only thing I do now is use BB code if possible. In fact that is exactly how I embed and play -through the forums- YouTube videos. All I want is to do the same but with videos hosted locally. All browsers for the last decade play MP4s by default, with no additional plugins, so no actual player .js or such should even really be needed. I mean I would accept a BB code that uses a trusted (ie adobe.com) third party site for a player if it's really needed to be able to have the code work properly.

Again, all I want is to be able to play MP4 files hosted directly on my domain. I'd prefer this just via BB code without any additional files having to be installed. I would accept using bbcode that links (uses) a trusted third party player, though if that's the case would prefer being able to grab the entire player and host that on my own too. Assuming the player is free or is allowed to be self hosted.

Don't hate me for never again installing any third party mods. For me, one rape is enough!
Reply With Quote
  #2  
Old 08-22-2015, 01:42 AM
PinkMilk PinkMilk is offline
 
Join Date: May 2010
Location: Earth
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You obviously know how to create bbcodes so will just post the html replacement needed:

HTML Code:
<video width="320" height="240" controls>
  <source src="{param}" type="video/mp4">
  Your browser does not support the video tag.
</video>
Source and Optional Attributes
Reply With Quote
2 благодарности(ей) от:
fred86, Suiram
  #3  
Old 08-22-2015, 06:09 AM
Suiram Suiram is offline
 
Join Date: Jan 2009
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah lovely, cheers. I'm using it already. Works with Firefox 40.xx which is what I use, and I would assume many versions before. The linked attribution page shows it as being supported since FF 3.5. :up:

I did also try it with IE v11.0.9600.17959 and I get the "Your browser does not support the video tag." message. I understand why -technically- I get it, but don't think I should. The browser support for the video tag started with IE 9.0, as shown on the list. :down:

Did not try Chrome as I'd have to install it. I will now that IE doesn't work, just to see. I assume it will.

--------------- Added [DATE]1440232865[/DATE] at [TIME]1440232865[/TIME] ---------------

stop press!!

here; <source src="{param}" type="video/mp4"> for my original bbcode entry i used;

<source src="http://mydomain.com/mp4/file.mp4" type="video/mp4"> and that worked. but after more testing i realized that doing so played only that file. duh! so, um, what do i use in that entry for a general "source"? i tried "*.mp4" and that's no good. i'm not seeing something obvious. :erm:

i now also tried hxtp://mydomain.com/mp4/ - no good.
Reply With Quote
  #4  
Old 08-22-2015, 07:42 PM
PinkMilk PinkMilk is offline
 
Join Date: May 2010
Location: Earth
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is because you replaced the
Code:
{param}
with a static file,
Code:
{param}
is needed so to be used multiple times like you had originally so when you or a member posts:

Code:
[videobb]http://mydomain.com/mp4/file.mp4[/videobbc]
it will show up and

Code:
[videobb]http://mydomain.com/mp4/file1.mp4[/videobbc]
[videobb]http://mydomain.com/mp4/file2.mp4[/videobbc]
would show 2 different videos.

Code:
{param}
is what gets "swapped out" and replaced with whatever you or your members put between the bbcode.

Security/abuse note:
If you allowing members to upload files to your server for posting or even if it's just you I would suggest adding part of the url within the replacement code:

Code:
<source src="http://yourdomain/mp4/{param}.mp4" type="video/mp4">
then making them just add the name of the file, so what you or they would post is just:
Code:
[videobb]file1[/videobbc]
otherwise anybody/spammers etc could take advantage and post what ever video they liked for instance:
Code:
[videobb]http://reallynastyporn.com/girl/gets/tickled.mp4[/videobbc]
Reply With Quote
  #5  
Old 08-23-2015, 06:14 AM
Suiram Suiram is offline
 
Join Date: Jan 2009
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That was it. Thanks brother from another mother. No user uploads, just me. I actually already made the code like the second part, so, yay.

I tried Chrome now too and that also works correctly. IE still produces; "Your browser does not support the video tag." That's it's problem. Don't really care. It is obvious it is it who is somehow at fault.
Reply With Quote
  #6  
Old 09-03-2015, 11:37 AM
Suiram Suiram is offline
 
Join Date: Jan 2009
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update time. I solved the IE issue. I had the setting Send Internet Explorer 7 Compatibility Header on, and turned it off. No wonder just IE was affected.
Reply With Quote
Благодарность от:
PinkMilk
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:50 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.04843 seconds
  • Memory Usage 2,222KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (8)bbcode_code
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (3)post_thanks_box_bit
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete