实时视频广播和流媒体

时间:2015-01-06 11:41:28

标签: ios xcode api video-streaming rtsp

我想将实时视频广播应用程序用于媒体服务器。我更喜欢RTSP。知道我可以使用哪种工具。

我发现了一些像:

来自:http://www.themidnightcoders.com/fileadmin/docs/ios/index.html?asyncall.htm

-(void) initConnection {
 rtmpClient = [[RTMPClient alloc] init];
 rtmpClient.delegate = self;
 [rtmpClient connect:@"rtmp://192.168.0.11:2037/MyApp"];
}

-(void)connect:(id)sender {        
         upstream = [[BroadcastStreamClient alloc] initWithClient:rtmpClient];
         upstream.imageView = drawImage; // contains the current video frame
         upstream.delegate = self // must be an instance of IBroadcastStreamClientDelegate
 [upstream stream:@"MyStream" publishType:PUBLISH_LIVE];
}

-(void)disconnect:(id)sender {        
   [upstream disconnect];
   upstream = nil;
}

-(void)startPublish {
   [upstream start];
}

-(void)stopPublish {   
   [upstream stop];
}

-(void)pausePublish {
   [upstream pause];
}

由于我之前没有做过这样的事情,请建议哪种工具/方式更加高效并快速。

0 个答案:

没有答案
相关问题