MyBB Community Forums

Full Version: How to use MyCode for streaming self-hosted videos?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can anyone point me towards more information about this?

I would like to stream videos I have uploaded to my own webspace in my forum, I saw someone use a code like [v] [/v] or something like that.

I will be uploading the videos via FTP and then streaming them, but I want code for other users to do the same if they have any self-hosted content. I know how to use HTML to do this, but it would be nice to have some MyCode.
Did you tried this => http://www.w3schools.com/html/html5_video.asp

MyCode:

Regular Expression:
\[vid=(.*?)\](.*?)\[/vid\]

Replacement:
<video width="640" height="480" controls>
  <source src="$2" type="video/$1">
Your browser does not support the video tag.
</video>


Example:
[vid=mp4]YOURPATHTOVIDEO.mp4[/vid]
Geniuses! I love you guys! My forum is runnning so sweet now, only the mobile version and tapatalk is buggy now, guess I will get on that today. Thanks again.