How Do I Embed Youtube Video or MP4 Without Using Iframes?

Avatar

Avatar

anthonywong

Avatar

anthonywong

anthonywong

13-01-2016

Hello friends,

I have recently made a video to promote our free web application . I uploaded the MP4 file to You-tube and copied the embed code. Can be seen on my web page (singlesdatingworld.com). After doing a site analysis I received a warning to avoid using I-frames on website as this is bad for S.E.O and my site could possibly get hacked this way. I tried using a DIV CODE I found online, but it still shows as an iframe in page source. So I wanted to know what's the best way to add this video to my homepage without using I-frames.

Can I upload the MP4 file to server and use some other script or convert it to flash and use an OBJECT CODE to make this work properly?

Your help would be greatly appreciated.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

ParitMittal

Avatar

ParitMittal

ParitMittal

17-01-2016

Hi Anthony, 

Are you trying to add the Video to a page using Dynamic Tag Management ?. As this particular forum is dedicated for queries regarding Adobe Marketing Cloud- DTM product. However as per our understanding ,you can add the You Tube video in an Object Tag without using Iframes. Please refer the code below for more information.

<object width="640" height="360"> <param name="movie" value="http://www.youtube.com/embed/yt-video-id?html5=1&amp;rel=0&amp;hl=en_US&amp;version=3"/ <param name="allowFullScreen" value="true"/> <param name="allowscriptaccess" value="always"/> <embed width="640" height="360" src="http://www.youtube.com/embed/yt-video-id?html5=1&amp;rel=0&amp;hl=en_US&amp;version=3" class="youtube-player" type="text/html" allowscriptaccess="always" allowfullscreen="true"/> </object>

Replace yt-video-id with your video id

Thanks & Regards

Parit Mittal

Answers (0)