Modify video from vimeo to youtube

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&amp;server=vimeo.co m&amp;show_title=0&amp;show_byline=0&amp;show_port rait=0&amp;color=E2F103&amp;fullscreen=1&amp;autop lay=0&amp;loop=0">
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=28912003&amp;server=vimeo.co m&amp;show_title=0&amp;show_byline=0&amp;show_port rait=0&amp;color=E2F103&amp;fullscreen=1&amp;autop lay=0&amp;loop=0" />
<param name="movie" value="" />
<param name="wmode" value="transparent" />
</object>
<br>
<br>
</div>
</div>

5 answers

Profile photo of chavan 100.00 $tone April 29, 2012
Public

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.

#1
Profile photo of Saguaros 0.00 $tone May 1, 2012
Public

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.

#2
Profile photo of Julian Serna 0.00 $tone June 5, 2012
Public

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"&gt;
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="movie" value="http://www.youtube.com/watch?v=U_lEOCeZb5M&quot; />
<param name="movie" value="" />
<param name="wmode" value="transparent" />
</object>
<br>
<br>
</div>
</div>

Thanks for help

#3
Profile photo of Saguaros 0.00 $tone June 8, 2012
Public

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



#4

This question is now closed

Written By

Comments