MyBB Community Forums
How to use MyCode for streaming self-hosted videos? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Resources (https://community.mybb.com/forum-8.html)
+--- Forum: MyCodes (https://community.mybb.com/forum-117.html)
+--- Thread: How to use MyCode for streaming self-hosted videos? (/thread-208281.html)



How to use MyCode for streaming self-hosted videos? - Nemus - 2017-02-13

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.


RE: How to use MyCode for streaming self-hosted videos? - SvePu - 2017-02-13

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]



RE: How to use MyCode for streaming self-hosted videos? - Nemus - 2017-02-14

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.