Last active
August 29, 2015 14:10
-
-
Save NghiaTranUIT/dd15838b1e478f4dc74e to your computer and use it in GitHub Desktop.
MergeAVAsset
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void) mergeAVAssetByArrAsset:(NSArray *) arrAsset | |
{ | |
AVMutableComposition * composition = [AVMutableComposition composition]; | |
for (AVAsset *asset in arrAsset) | |
{ | |
CMTimeRange timeRange = CMTimeRangeMake(kCMTimeZero, asset.duration); | |
[composition insertTimeRange:timeRange ofAsset:asset atTime:composition.duration error:nil]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment