title: iOS VIMVideoPlayerView can't load vimeo videos
body: <p>I'm making an iOS app in Objective C which has to load video with vimeo urls. I wanted to use a video player and I used this : <a href="https://github.com/vimeo/VIMVideoPlayer" rel="nofollow">https://github.com/vimeo/VIMVideoPlayer</a>.
  I follow the read me instructions, however I 'm not able to read vimeo videos, I got an error:</p>
  
  <blockquote>
    <p>Video player Status Failed: error = Error
    Domain=AVFoundationErrorDomain Code=-11828 "Cannot Open"
    UserInfo=0x7f9c5d17b8c0 {NSUnderlyingError=0x7f9c5d176910 "The
    operation couldn’t be completed. (OSStatus error -12847.)",
    NSLocalizedFailureReason=This media format is not supported.,
    NSLocalizedDescription=Cannot Open}</p>
  </blockquote>
  
  <p>Here 's my code :</p>
  
  <pre><code>-(void)viewDidLoad
  {
      [super viewDidLoad];
  
      self.videoPlayerView = [[VIMVideoPlayerView alloc] init];
      self.videoPlayerView.translatesAutoresizingMaskIntoConstraints = NO;
      self.videoPlayerView.delegate = self;
      [self.videoPlayerView setVideoFillMode:AVLayerVideoGravityResizeAspect];
      [self.videoPlayerView.player enableTimeUpdates];
      [self.videoPlayerView.player enableAirplay];
      [self.view addSubview:self.videoPlayerView];
      NSDictionary *views = NSDictionaryOfVariableBindings(_videoPlayerView);
      [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|-0-[_videoPlayerView]-0-|" options:0   metrics:nil views:views]];
      [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-0-[_videoPlayerView]-0-|" options:0   metrics:nil views:views]];
  
      //this is the kind of url I want to load
      NSURL *URL = [NSURL URLWithString:@"https://player.vimeo.com/video/51806929"];
      [self.videoPlayerView.player setURL:URL];
      [self.videoPlayerView.player play];
  }
  </code></pre>
  
  <p>Thanks for your help.</p>