简体   繁体   中英

Not Playing RTSP live stream in iphone app

I have worked with streaming HTTP live streaming. Now I want to try with RTSP live streaming.

But not getting much tutorials or any sample code to get started.

Also got Github link of projec dropCam but it is not being run so that I can see how to stream RTSP.

Also go through Stackoverflow questions1 , questions2 but still blank.

Till Now I have try,

NSURL *url = [NSURL URLWithString:@"rtsp://video3.americafree.tv/AFTVComedyH2641000.sdp"];
    //NSURL *url = [NSURL URLWithString:@"rtsp://10.2.216.228:554/2G/LIVE/STARPLUS_QCIF.sdp"];

    mpVC = [[MPMoviePlayerViewController alloc] initWithContentURL:url];
    [self.view addSubview:mpVC.view];

But Not Playing.

Any nice tutorial with sample code or elaborated information will be helpful.

Maybe Iphone doesn't support rtsp streaming protocol.
You should try it by using third party libraries such as FFmpeg.
FFmpeg library has some feature that help you play rtsp streaming.

I'll post helpful url that specifies how to play mms streaming protocol using FFmpeg.

this

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM