获取视频资源
AVURLAsset *asset = [AVURLAsset assetWithURL:url];
NSArray *array = asset.tracks;
CGSize videoSize = CGSizeZero;
for(AVAssetTrack *track in array)
{
if([track.mediaType isEqualToString:AVMediaTypeVideo])
{
videoSize = track.naturalSize;
}
}
网友评论