Video asset writer for iOS
AVFoundation on iOS lacks the ability to use AVCaptureVideoDataOutput and AVCaptureMovieFileOutput simultaneously. Right now viewfinder stops working as soon as we add movie file output. The only workaround we have now is to write video/audio 'maually' - creating asset writer and feeding it with audio/video samples. Change-Id: I33a63546783279c545f0433b5051287269825d3f Task-number: QTBUG-37655 Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
This commit is contained in:
committed by
Yoann Lopes
parent
aeb79d4a8b
commit
1508f775ac
@@ -27,7 +27,6 @@ HEADERS += \
|
||||
avfcameracontrol.h \
|
||||
avfcamerametadatacontrol.h \
|
||||
avfimagecapturecontrol.h \
|
||||
avfmediarecordercontrol.h \
|
||||
avfcameraservice.h \
|
||||
avfcamerasession.h \
|
||||
avfstoragelocation.h \
|
||||
@@ -49,7 +48,6 @@ OBJECTIVE_SOURCES += \
|
||||
avfcameracontrol.mm \
|
||||
avfcamerametadatacontrol.mm \
|
||||
avfimagecapturecontrol.mm \
|
||||
avfmediarecordercontrol.mm \
|
||||
avfcameraservice.mm \
|
||||
avfcamerasession.mm \
|
||||
avfstoragelocation.mm \
|
||||
@@ -66,9 +64,20 @@ OBJECTIVE_SOURCES += \
|
||||
avfimageencodercontrol.mm \
|
||||
avfcameraflashcontrol.mm
|
||||
|
||||
ios {
|
||||
osx {
|
||||
|
||||
HEADERS += avfcamerazoomcontrol.h
|
||||
OBJECTIVE_SOURCES += avfcamerazoomcontrol.mm
|
||||
HEADERS += avfmediarecordercontrol.h
|
||||
OBJECTIVE_SOURCES += avfmediarecordercontrol.mm
|
||||
|
||||
}
|
||||
|
||||
ios {
|
||||
|
||||
HEADERS += avfcamerazoomcontrol.h \
|
||||
avfmediaassetwriter.h \
|
||||
avfmediarecordercontrol_ios.h
|
||||
OBJECTIVE_SOURCES += avfcamerazoomcontrol.mm \
|
||||
avfmediaassetwriter.mm \
|
||||
avfmediarecordercontrol_ios.mm
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user