3.3.x SnippetsbbCode to play mp4 video on server

Snippets
Previous topicNext topic
User avatar

Topic Author
Fast_Eddie
Users
Users
Status: Offline
User theme: Light
Posts: 278
Joined: Aug 15th, '15, 18:25
    Windows 10 Edge

bbCode to play mp4 video on server

Post by Fast_Eddie »

This was huge for me, hope it helps someone! Simple BBcode to play video from your server! :thumbup:

USEAGE:

Code: Select all

[mp4]{URL}[/mp4] 
HTML Replacement

Code: Select all

<video src="{URL}" style="width:100%;max-width:640px;max-height:360px;background-color: black;" controls>
Your browser does not support the video tag.
</video>
Help line

Code: Select all

[mp4]The full url on your server[/mp4] 
**mp4 files only
:beers: Retirement 2024!
User avatar

Sniper_E
VIP
VIP
Status: Offline
User theme: Dark
Posts: 1124
Joined: Oct 14th, '14, 17:01
    Windows 10 Firefox

Re: bbCode to play mp4 video on server

Post by Sniper_E »

I like this one and it works well. But I have a fire.mp4 in my images directory that I want to use autoplay loop for it and without controls in it.

I tried to set it up using [mp4={SIMPLETEXT}]{URL}[/mp4] so we could state what variables we wanted for each video posted but no go.
There has to be a way...
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™
User avatar

Topic Author
Fast_Eddie
Users
Users
Status: Offline
User theme: Light
Posts: 278
Joined: Aug 15th, '15, 18:25
    Windows 10 Edge

Re: bbCode to play mp4 video on server

Post by Fast_Eddie »

:yikes: um ...ok
User avatar

Sniper_E
VIP
VIP
Status: Offline
User theme: Dark
Posts: 1124
Joined: Oct 14th, '14, 17:01
    Windows 10 Firefox

Re: bbCode to play mp4 video on server

Post by Sniper_E »

I think I have found an adjustable solution... You can set max-width, max-height, controls=yes autoplay=yes and loop=yes

USEAGE:

Code: Select all

[mp4={NUMBER1} {NUMBER2} {NUMBER3} {NUMBER4} {NUMBER5}]{URL}[/mp4]
HTML Replacement

Code: Select all

<video src="{URL}" style="width:100%;max-width:{NUMBER1}px;max-height:{NUMBER2}px;background-color: black;border: 3px solid #555;" controls="{NUMBER3}" autoplay="{NUMBER4}" loop="{NUMBER5}">
Your browser does not support the video tag.
</video>
Help line

Code: Select all

Mp4 player: [mp4=320 180 0 1 1]video_url[/mp4]
[mp4=width(value) height(value) controls(value) autoplay(value) loop(value)] Values: 0=No 1=Yes
For the fire.mp4 I put in my chat I posted [mp4=160 90 0 1 1]images/fire.mp4[/mp4] No on controls 0 - Yes on autoplay 1 and Yes on loop 1

For your video you could post it like [mp4=640 360 1 0 0]images/eddies_video.mp4[/mp4] Yes on controls - No on autoplay and No on loop
Previous topicNext topic