Friday, 15 August 2014

objective c - playing audio in background and recording that background audio with video on iphone -



objective c - playing audio in background and recording that background audio with video on iphone -

in app want play background sound , video recording both sound , video record....

how can functionality???

// setup cam

-(void)setupdivavcam { self.capturingwindow.delegate = self; [self.capturingwindow setupwithoptions:@{diyavsettingcameraposition : [nsnumber numberwithint:avcapturedevicepositionback] }]; [self.capturingwindow setcammode:diyavmodevideo]; } #pragma mark - rec video methods start -(ibaction)capturevideo:(id)sender { [self startcapturingvideo]; } -(ibaction)stopvideo:(id)sender { [self stopcapturingvideo]; } //to start video recording -(void)startcapturingvideo { { { if(![[uidevice currentdevice].model isequaltostring:@"iphone simulator"]) { //to disable photographic camera button time untill image loads _camerabutton.userinteractionenabled = no; [self.capturingwindow capturevideostart]; } } } } //to stop video recording -(void)stopcapturingvideo { [self.capturingwindow capturevideostop]; }

the above code video

i looked in several forums , couldn't deliver satisfying answer.

my wish able play , record video while playing music @ background. managed help of snippet found. here code:

iphone objective-c ios7 avaudiorecorder

No comments:

Post a Comment