This is a migrated thread and some comments may be shown as answers.

Embed YouTube Videos

1 Answer 32 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Oliver
Top achievements
Rank 1
Oliver asked on 18 May 2012, 07:39 PM
I need RadEditor to upload and embed YouTube videos.  This is working in several browsers, but not in IE8.  Is there any reason you can think of that it wouldn't or anything that needs to be configured in Explorer?  Here is some sample code. 

<object width="210" height="150">
     <param name="movie" value="http://www.youtube.com/v/o2GBYBTty0M">
     </param>");
     <param name="wmode" value="transparent">
     </param>");
     <embed src="{UrlVideo}"");
        type="application/x-shockwave-flash" wmode="transparent"
      width="210" height="150">
      </embed>
      </object>

Thanks in advance for your help.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 19 May 2012, 09:31 AM
Hello,

If you load / save an object tag you should set a classid attribute in the object tag, e.g.

classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"

The classid attribute provides a reference that the browser can use to understand how the object should be implemented. This attribute is usually used to ensure that the browser has the correct version of the control.

Here is how the complete tag should looks:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="480" height="385">
<param name="movie" value="http://www.youtube.com/v/r0RLFgjHEJU&hl=en_US&fs=1&"/>
<param name="allowFullScreen" value="true"/>
<param name="allowscriptaccess" value="always"/><embed src="http://www.youtube.com/v/r0RLFgjHEJU&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>

Best regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
Oliver
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or