Code after the jump..
<mt:if name="service_type" eq="youtube">
<mt:SetVarBlock name="videoid"><$MTStreamActionURL regex_replace="/http:\/\/www\.youtube\.com\/watch\?v\=/","" $></mt:SetVarBlock>
<object width="320" height="265">
<param name="movie" value="http://www.youtube.com/v/<mt:var name="videoid">&hl=en&fs=1&rel=0"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/<mt:var name="videoid">&hl=en&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="320" height="265"></embed>
</object>
</mt:if>
This grabs the actual video id from the StreamURL and sticks it into
the standard embed html that each video provides. You can adjust the
sizes, I find the easiest way to make sure you get it proportional is
to actually go to a video on youtube, select the embed and customise
options then view the code it outputs. From this you can work out what
to change in the above code to add related videos, changel colours, add
a border etc etc.
Leave a comment