search for: in: entire forum this post
you are here: root => Suggestions => 3rd party tags suggestions => mov and quicktime video embeds
member since:
folders:
0
posts:
0
replies:
0

mov and quicktime video embeds

I could use some help with making the following code into bbcode: <object CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="1024" height="768" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">&​#60;param name="qtsrc" value="http://jacarta-serv.cz.cc/video/karin-ending-1.mov"&#​62;<param name="autoplay" value="false"><param name="loop" value="false"><param name="controller" value="true"><embed src="http://jacarta-serv.cz.cc/video/karin-ending-1.mov" qtsrcsrc="jacarta-serv.cz.cc/video/karin-ending-1.mov" width="1024" height="768" autoplay="false" loop="false" controller="true" pluginspage="http://www.apple.com/quicktime/"></embe​d></object>
post #202 permalink
please login to reply
member since:
folders:
10
posts:
22
replies:
75
w3schools recommendation on how to embed a quicktime video is this:

code:
<object width="160" height="144"
classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value="sample.mov">
<param name="autoplay" value="true">
<param name="controller" value="false">

<embed src="sample.mov" width="160" height="144"
autoplay="true" controller="false"
pluginspage="http://www.apple.com/quicktime/download/">
</embed>

</object>


http://www.w3schools.com/media/media_quicktime.asp

so if we apply this to your code it gives this:

code:
<object width="1024" height="768"
classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value="http://jacarta-serv.cz.cc/video/karin-ending-1.mov">
<param name="autoplay" value="false">
<param name="controller" value="true">

<embed src="http://jacarta-serv.cz.cc/video/karin-ending-1.mov" width="1024" height="768"
autoplay="false" controller="true"
pluginspage="http://www.apple.com/quicktime/download/">
</embed>

</object>



gives this




so here you go, i cooked you up a quicktime bbcode php code:

code:
$bb_replace_3rd_party['quicktime']='/\[quicktime(( width=([^ \]]+))*|( height=([^ \]]+))*|( autoplay=([^ \]]+))*|( controller=([^ \]]+))*)*\]([^ \[]*)\[\/quicktime\]/is';
$bb_replacements_3rd_party['quicktime']='<object width="\\3" height="\\5"
classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value="\\10">
<param name="autoplay" value="\\7">
<param name="controller" value="\\9">

<embed src="\\10" width="\\3" height="\\5"
autoplay="\\7" controller="\\9"
pluginspage="http://www.apple.com/quicktime/download/">
</embed>

</object>';
$bb_name['quicktime']='quicktime video';
$bb_legend['quicktime']='[QUICKTIME WIDTH=100 HEIGHT=100 AUTOPLAY=false CONTROLLER=true]http://mywebsite.com/myvideo.mov[/QUICKTIME] embeds a quicktime video in the post';
$bb_type['quicktime']='3rd party';



just add this to your bbcode.php and the quicktime tag will be available in your 3rd party tags and will be managed the same as the other 3rd party tags.

it would be a good idea to add this to the main distribution of the forum since probably many people might be interested in embedding quicktime videos too, but i will wait for now because i think instead of putting this tag in the 3rd party category i should make a new category that i could call the "media tags" in which i will include this quicktime tag but also a tag to embed divx videos, flv videos and mp3 audio.



wassaa


test: test
post #205 permalink
member since:
folders:
0
posts:
0
replies:
0
thanks for making the code for me. those regex are still confusing to me.
post #206 permalink
please login to reply

moderators of this post

josh041692 (level: ∞)
powered by Nodesforum