我录制了一个视频并将其复制到路径
NSURL *videoPath =[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUsersDomainMask,YES) objectAtIndex:0],@"/output.mov"]];
然后使用 MPMoviePlayer 播放:
MPMoviePlayerController *player = [[MPMovieController alloc] initWithContentURL:videoPath];
这不起作用。视频无法加载。文件路径是
"/var/mobile/Applications/12341235-12354125-123412-41/Documents/output.mov"
有谁知道为什么?