您好我正在开发基于广播的应用程序,因为我正在使用视频核心库我需要编码视频H.264和音频AAC然后只有Wowza服务器流我的视频但我不知道如何实现请任何人帮助我
答案 0 :(得分:0)
查看视频核心的示例项目,它几乎为您提供了如何启动rtmp会话的步骤。
//Create a session and add preview to ur Viewcontrollers Subview
_session = [[VCSimpleSession alloc] initWithVideoSize:self.view.frame.size frameRate:30 bitrate:32000 useInterfaceOrientation:YES];
_session.orientationLocked = YES;
[self.view addSubview:_session.previewView];
_session.previewView.frame = self.view.bounds;
_session.delegate = self;
// then when ur ready start a session
[_session startRtmpSessionWithURL:@"rtmp://RTMPURL/APPPATH" andStreamKey:@"STREAM_KEY"];