Adding documentation for assetURL in ASVideoNode, and adding a mutex lock for assetURL setter (#1961)

* Adding comment in ASVideoNode.h for the assetURL property

* Adding a mutexlock in setAssetURL in ASVideoNode
This commit is contained in:
Max Gu
2016-07-20 18:40:49 -07:00
committed by appleguy
parent 5723f603c1
commit 1d4620edce
2 changed files with 7 additions and 0 deletions

View File

@@ -41,6 +41,11 @@ NS_ASSUME_NONNULL_BEGIN
- (BOOL)isPlaying;
@property (nullable, nonatomic, strong, readwrite) AVAsset *asset;
/**
** @abstract The URL with which the asset was initialized.
** @discussion Setting the URL will overwrite the current asset with a newly created AVURLAsset created from the given URL, and AVAsset *asset will point to that newly created AVURLAsset. Please don't set both assetURL and asset.
** @return Current URL the asset was initialized or nil if no URL was given.
**/
@property (nullable, nonatomic, strong, readwrite) NSURL *assetURL;
@property (nullable, nonatomic, strong, readwrite) AVVideoComposition *videoComposition;
@property (nullable, nonatomic, strong, readwrite) AVAudioMix *audioMix;