avplayer plays video on simulator not on device?
<p>i am having issues with playing a video through url using <strong>avplayer</strong> and <strong>avplayerviewcontroller</strong></p>

<p>it plays fine on simulator but doesnt work on device.
Is it a problem with the static ip i have been using as follows - </p>

<p><a href="https://ipaddress(111.111.11.11:443)/mc/images/wall/small.mp4" rel="nofollow">https://ipaddress(111.111.11.11:443)/mc/images/wall/small.mp4</a></p>

<p>same video from the following url plays fine on device</p>

<p><a href="http://techslides.com/demos/sample-videos/small.mp4" rel="nofollow">http://techslides.com/demos/sample-videos/small.mp4</a></p>

<p>the code below i am using -</p>

<pre><code>NSURL *url = [NSURL URLWithString:@"http://techslides.com/demos/sample-videos/small.mp4"];//@""];https://180.179.77.47:443/mc/images/wall/small.mp4
    AVAsset *videoAsset = [AVAsset assetWithURL:url];

    AVPlayerItem *item = [AVPlayerItem playerItemWithAsset:videoAsset];
    playerVideo = [AVPlayer playerWithURL:url];
    [[AVAudioSession sharedInstance]setCategory:AVAudioSessionModeMoviePlayback error:nil];
    movieController = [[AVPlayerViewController alloc]init];
    [movieController setAllowsPictureInPicturePlayback:YES];
    movieController.player = playerVideo;
    movieController.delegate = self;
    movieController.videoGravity = AVLayerVideoGravityResizeAspectFill;

    [self presentViewController:movieController animated:YES completion:nil];
</code></pre>