I'm trying to play a YouTube video in my app. It seems like I get to right place, but the video is not playing. I'm running the app on an actual device (not on the simulator).

this is the code I'm using:

```
- (void)viewDidLoad
{
    [super viewDidLoad];

    NSString *htmlString = @"<html><head>\
    <meta name = \"viewport\" content = \"initial-scale = 1.0, user-scalable = no, width = 320\"/></head>\
    <body style=\"background:#000;margin-top:0px;margin-left:0px\">\
    <iframe id=\"ytplayer\" type=\"text/html\" width=\"320\" height=\"240\"\
    src=\"http://www.youtube.com/embed/VIDEO_ID&feature?autoplay=1\"\
    frameborder=\"0\"/>\
    </body></html>";

//VIDEO_ID holds the video embedded code I get from YouTube

    [self.webView loadHTMLString:htmlString baseURL:[NSURL URLWithString:@"http://www.youtube.com"]];

}

```

The YouTube player is loading, but when I click on the PLAY button I get "This video is currently unavailable":

![enter image description here](https://i.stack.imgur.com/wjDxg.png)

I tested the embedded video id (copy&paste into a web page) and it finds the related video (i.e. I assume I have the correct video id).

Anyone has any idea what am I doing wrong?