我想在我的申请中播放视频。为此,我使用了以下代码:
NSURL *fileURL = [NSURL URLWithString:@"http://www.boxmusiq.com/ThiruvasakamVideo /VTS_01_2_converted.mp4"];
moviePlayerController = [[MPMoviePlayerController alloc] initWithContentURL:fileURL];
[moviePlayerController.view setFrame:CGRectMake(0, 70, 320, 270)];
[self.view addSubview:moviePlayerController.view];
moviePlayerController.fullscreen = YES;
[moviePlayerController play];
Now above url is a http link but I want to play video from rtsp link. 我的rtsp链接是:
rtsp://v8.cache3.c.youtube.com/CjYLENy73wIaLQlxYJvp0_b1wxMYDSANFEIJbXYtZ29vZ2xlSARSBXdhdGNoYIiCgqTg6_XeTww=/0/0/0/video.3gp
如果有人知道如何从rtsp链接播放视频。请给我一些解决办法。
多亏了所有人。
发布于 2012-06-27 11:06:19
您可以在实现RTSP的github上检查以下项目,
https://stackoverflow.com/questions/11224760
复制相似问题