[MetalVideoProcess]: fix export bug.

This commit is contained in:
斑布
2020-10-16 14:34:14 +08:00
parent 363816d6ad
commit 3e298925f6
14 changed files with 333 additions and 53 deletions
@@ -572,7 +572,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = RYRPKMVKDL;
DEVELOPMENT_TEAM = 3BJYKWHMM4;
INFOPLIST_FILE = SimpleVideoEditor/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
@@ -591,7 +591,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = RYRPKMVKDL;
DEVELOPMENT_TEAM = 3BJYKWHMM4;
INFOPLIST_FILE = SimpleVideoEditor/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
@@ -136,8 +136,9 @@ extension ViewController: MetalVideoProcessPlayerDelegate {
source --> self.movieWriter!
self.view.isUserInteractionEnabled = false
try? self.player?.startExport()
self.movieWriter?.activateAudioTrack()
self.movieWriter?.startRecording()
try? self.player?.startExport()
}
}