Hello and thanks for help.
I want to know what i have to do to change video.phtml source from vimeo to youtube.
I tried but i can not do right
thanks
video.
*/
?>
<div class="block block-video">
<div class="block-title"><strong><span><span class="first-word">Trailer</span></span></strong></div>
<div class="block-content">
<object id="videovimeo-280" width="280" height="158" type="application/x-shockwave-flash" data="http://vimeo.com/moogaloop.swf?clip_id=28912003&server=vimeo.co m&show_title=0&show_byline=0&show_port rait=0&color=E2F103&fullscreen=1&autop lay=0&loop=0">
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=28912003&server=vimeo.co m&show_title=0&show_byline=0&show_port rait=0&color=E2F103&fullscreen=1&autop lay=0&loop=0" />
<param name="movie" value="" />
<param name="wmode" value="transparent" />
</object>
<br>
<br>
</div>
</div>
5 answers
Is this is embed code is generated or you have pasted what vimeo provided. please confirm and post your site Url in PM. May be if the admin details needed.
Hi julianserna,
You can change like this:
Code:
<object id="videovimeo-280" width="280" height="158" data="http://www.youtube.com/embed/u4GGnnvEjjM"> <param name="allowfullscreen" value="true" /> <param name="allowscriptaccess" value="always" /> <param name="movie" value="http://www.youtube.com/embed/u4GGnnvEjjM" /> <param name="movie" value="" /> <param name="wmode" value="transparent" /> </object>
Red text color is your embed code of youtube video.
Hope this helps.
Hi saguaros and chavan.
This is my video.phtml code but did not work
Nothing appears.
<div class="block block-video">
<div class="block-title"><strong><span><span class="first-word">Trailer</span></span></strong></div>
<div class="block-content">
<object id="videovimeo-280" width="280" height="158" data="http://www.youtube.com/watch?v=U_lEOCeZb5M">
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="movie" value="http://www.youtube.com/watch?v=U_lEOCeZb5M" />
<param name="movie" value="" />
<param name="wmode" value="transparent" />
</object>
<br>
<br>
</div>
</div>
Thanks for help
Dear julianserna,
You can try this way:
Replace this:
PHP Code:
<object id="videovimeo-280" width="280" height="158" data="http://www.youtube.com/watch?v=U_lEOCeZb5M">
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="movie" value="http://www.youtube.com/watch?v=U_lEOCeZb5M" />
<param name="movie" value="" />
<param name="wmode" value="transparent" />
</object>
With:
PHP Code:
<iframe width="280" height="158" src="http://www.youtube.com/embed/U_lEOCeZb5M" frameborder="0" allowfullscreen></iframe>
Thanks Saguaros
it works
This question is now closed