infnity8x3
02-10-2010, 10:00 PM
Hello,
This is a simple BB Code that will allow you to embed your own video files into a post. With this code you can host your own videos, All you need is a link to the video.
This code was inspired by DJRavine and his BB Code here https://vborg.vbsupport.ru/showthread.php?t=157062
This is updated code and cross platform (works on FF & IE) Follows autostart rules in firefox.
Video BB Code
-------------------------------------------------------
---
Name:
Video BB Code
---
Tag:
mov
---
Replacement:
<OBJECT id='mediaPlayer' width="320" height="285"
classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
<param name='fileName' value="{param}">
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value="0">
<param name='showControls' value="true">
<param name='loop' value="true">
<EMBED type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
bgcolor='darkblue' showcontrols="true" showtracker='-1'
showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320" height="285"
src="{param}" autostart="0" designtimesp='5311' loop="false">
</EMBED>
</OBJECT>
---
Example:
http://www.example.com/example.mpg
---
Description:
Embed a video link from another website or your own server.
You can use *.wmv, *.mpeg, *.mpg, *.avi...
---
Option:
No
Thanks to DJRavine for inspiration, I just needed a updated version of his code so I updated it myself and am sharing it.
This is a simple BB Code that will allow you to embed your own video files into a post. With this code you can host your own videos, All you need is a link to the video.
This code was inspired by DJRavine and his BB Code here https://vborg.vbsupport.ru/showthread.php?t=157062
This is updated code and cross platform (works on FF & IE) Follows autostart rules in firefox.
Video BB Code
-------------------------------------------------------
---
Name:
Video BB Code
---
Tag:
mov
---
Replacement:
<OBJECT id='mediaPlayer' width="320" height="285"
classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
<param name='fileName' value="{param}">
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value="0">
<param name='showControls' value="true">
<param name='loop' value="true">
<EMBED type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
bgcolor='darkblue' showcontrols="true" showtracker='-1'
showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320" height="285"
src="{param}" autostart="0" designtimesp='5311' loop="false">
</EMBED>
</OBJECT>
---
Example:
http://www.example.com/example.mpg
---
Description:
Embed a video link from another website or your own server.
You can use *.wmv, *.mpeg, *.mpg, *.avi...
---
Option:
No
Thanks to DJRavine for inspiration, I just needed a updated version of his code so I updated it myself and am sharing it.