ios - Record video with custom camera UI but prevent save -
i'm using avcapturefileoutputrecordingdelegate - didfinishrecordingtooutputfileat inside custom camera ui, don't want pass method because video been saved when finish recording. legacy reasons can't save video locally, take in static instance , delete local. how can ?
avfoundation framework has following output capture session.
avcapturemoviefileoutput- record , output movie fileavcapturevideodataoutput- process frames video being capturesavcaptureaudiodataouput- process audio data being capturesavcapturestillimageoutput- capture still image output
since don't want save recorded video file. other best option using avcapturevideodataoutput , each frame on continuous recording video , create video image buffer. make note not have audio output in case. again can add avcaptureaudiodataouput , embed audio separately on our recorded video. workaround not work higher frame rates. best suggestion save video temp folder , delete later.
Comments
Post a Comment