Embeded YouTube video playing by iPhone

Discussion in 'HTML & Website Design' started by KingCobra, Dec 13, 2011.

  1. #1
    Dear friends,

    I have embeded a youtube video in a page alone. Its very simple 1 line code. Its play in full screen & auto start.
    I made the iframe width & height to 100% so that it fit automatically in all size screen. Its running perfect for PC/laptop but problem in iPhone. Maybe in iPhone its not showing the video reduced size (proportionally according to small screen), and not auto play.

    Here is the link with only a 36 seconds video. Please test this using mobile/iPhone.
    www.vitacareworld.com/qr/gums

    Here is the code I used.

    <body topmargin="0" leftmargin="0">
    
    <iframe title="YouTube video player" class="youtube-player" type="text/html" width="100%" height="100%" src="http://www.youtube.com/embed/vOveOrbpB7k?autoplay=1" frameborder="0" allowFullScreen></iframe>
    
    Code (markup):
    PLEASE HELP ME
     
    KingCobra, Dec 13, 2011 IP