title: iOS: Vimeo Video player
body: <p>I'm trying to play a Vimeo video in a iOS UIWebView using this code:</p>
  
  <pre><code>NSString *urlString = [NSString stringWithFormat:@"http://player.vimeo.com/video/%@?title=0&amp;amp;byline=0&amp;amp;portrait=0", video.serviceId];
  [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:urlString]]];
  </code></pre>
  
  <p>It works fine on iPhone 4 but on iPhone 3GS this works sometimes fine, but other times the response from the Vimeo Player is as following:</p>
  
  <p><img src="https://i.stack.imgur.com/XWKv6.png" alt="Vimeo response"></p>
  
  <p>Can anybody tell me how to play a Vimeo video in iOS on all devices?</p>
  
  <p><strong>EDIT1:</strong></p>
  
  <p>I've tested the User Agent information and both devices (iPhone 4 and iPhone 3GS) is sending the same User Agent:</p>
  
  <blockquote>
    <p>Mozilla/5.0 (iPhone; CPU iPhone OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Mobile/9A405</p>
  </blockquote>
  
  <p>Further I've tried to play the video from the Safari browser on the iPhone 3GS, which gives the same error as in the UIWebView.</p>