Skip to content

Commit b576c2e

Browse files
committed
Merge pull request #86 from longbai/phasset
fixed avfoundation ref
2 parents be17d9b + f40ff3d commit b576c2e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
#Changelog
22

3-
## 7.0.13 (2015-10-20)
3+
## 7.0.13 (2015-10-28)
44

55
### 增加
66
* 支持 https
77
* 禁止0字节文件上传
88
* ua加入idfv 便于网络诊断
9+
* 支持PHAsset
910

1011
### 修正
1112
* QNHttpDelegate.h 头文件名大小写修正

QiniuSDK/Common/QNPHAssetFile.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#if (defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000)
1212
#import <Photos/Photos.h>
13-
13+
#import <AVFoundation/AVFoundation.h>
1414
enum {
1515
kAMASSETMETADATA_PENDINGREADS = 1,
1616
kAMASSETMETADATA_ALLFINISHED = 0
@@ -159,7 +159,7 @@ - (NSData *)fetchDataFromAsset:(PHAsset *)asset
159159
[[PHImageManager defaultManager] requestAVAssetForVideo:asset
160160
options:request
161161
resultHandler:
162-
^(AVAsset * _Nullable asset, AVAudioMix * _Nullable audioMix, NSDictionary * _Nullable info) {
162+
^(AVAsset* asset, AVAudioMix* audioMix, NSDictionary* info) {
163163
AVURLAsset *urlAsset = (AVURLAsset *)asset;
164164
NSData *videoData = [NSData dataWithContentsOfURL:urlAsset.URL];
165165
tmpData = [NSData dataWithData:videoData];

0 commit comments

Comments
 (0)