Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 无法在MPMoviePlayerViewController中查看已解析的m4v链接_Objective C_Xcode_Mpmovieplayercontroller_Itunes_Nsxmlparser - Fatal编程技术网

Objective c 无法在MPMoviePlayerViewController中查看已解析的m4v链接

Objective c 无法在MPMoviePlayerViewController中查看已解析的m4v链接,objective-c,xcode,mpmovieplayercontroller,itunes,nsxmlparser,Objective C,Xcode,Mpmovieplayercontroller,Itunes,Nsxmlparser,我正在这里解析此xml文件: 我从xml文件中获取预览链接,但由于某些原因,url无法在我的MPMovieViewController中播放。预览链接示例如下: 如果您能告诉我为什么这不会在我的MPMovieViewController中播放,我将不胜感激 注:这是我的代码: if (section == 2) { if (row == 0) { MPMoviePlayerViewController *controller = [[MPMoviePlayerViewCo

我正在这里解析此xml文件:

我从xml文件中获取预览链接,但由于某些原因,url无法在我的MPMovieViewController中播放。预览链接示例如下:

如果您能告诉我为什么这不会在我的MPMovieViewController中播放,我将不胜感激

注:这是我的代码:

if (section == 2) {
    if (row == 0) {
        MPMoviePlayerViewController *controller = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL URLWithString:previewlink]];
        NSLog(@"%@", previewlink);
        [self.navigationController presentMoviePlayerViewControllerAnimated:controller];
    }

我也有同样的问题,显然苹果不允许从iTunes的SDK中显示受保护的视频。检查