Auto-playing a YouTube Video Inside a WebUIView

Auto-playing a YouTube Video Inside a WebUIView

June 11, 2011

Well I have been searching for an answer to this all day and finally someone has the goods! Basically I wanted to auto play a Youtube video that has been embedded in a WebUIView on the iPhone/iPod touch. Javascript or embed object attributes such as autostart and autoplay=1 didn't work and reading the post below you’ll see why.

http://silentmac.com/?p=453

Here’s the main code snipped you’ll need anyway. Put this in your “.m” file that contains your WebUIView.