title: Trying to implement JW Player on iOS
body: <p>I am a newbi in JW and can't seem to implement to simplest player. Help me, please.</p>
  
  <p>I have created an html and put it in my project. in the same place with the jwplayer.flash.swf, jwplayer.html5.js, jwplayer.js</p>
  
  <p>My html file looks like this (Home.html):</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Title of the document&lt;/title&gt;
    &lt;script type="text/javascript" src="jwplayer.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript"&gt;jwplayer.key="myKey"&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div id='player_8955'&gt;&lt;/div&gt;
    &lt;script type='text/javascript'&gt;
      jwplayer('player_8955').setup({
        file: "http://www.youtube.com/watch?v=ac7KhViaVqc",
        width: "480",
        height: "270",
        image: "http://content.bitsontherun.com/thumbs/3XnJSIm4-640.jpg",
      });
    &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>in the controller class:</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
      htmlPlayerWebView=[[UIWebView alloc]initWithFrame:CGRectMake(20, 51, 674,381)];
      [self.view addSubview:htmlPlayerWebView];
  }
  -(void)loadVideo
  {
      NSString *path = [[NSBundle mainBundle] pathForResource:@"Home" ofType:@"html"];
      NSString *HTMLString = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:nil];
      [htmlPlayerWebView loadHTMLString:HTMLString baseURL:[NSURL URLWithString:path]];
  }
  </code></pre>
  
  <p>The functions are called. But nothing happens.</p>