阿里云
发表主题 回复主题
  • 932阅读
  • 0回复

[语言脚本]急急急急iOS 短视频 OSS 上传视频AVURLAsset avcNaturalSize这个报错

级别: 新人
发帖
1
云币
2
[self getTestSTSEndpointBucketObjectWithFinishHandler:^{ Z@G[\"  
        [uploader init:ossAccessKeyId accessKeySecret:ossAccessKeySecret secretToken:ossSecretToken expireTime:ossExpireTime listener:listener]; 3iI 4yg  
         %]m/fo4b  
        NSLog(@"addFile clicked."); ,@#))2<RK  
        if (![self checkSTS]) { ruKm_j#J  
            UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"缺少参数" message:@"请指定STS凭证,Bucket,Endpoint" delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil]; (1pR=  
            [alertView show]; 0S%xm'|N  
            return; iW # |N^  
        } ~mR@L`"l  
         o;zU;pkB  
        //    NSString *name = [NSString stringWithFormat:@"%ld.demo.ios.mp4", pos]; UCz\SZ{za  
        NSString *filePath = [[NSBundle mainBundle] pathForResource:@"1" ofType:@"mp4"]; 5(+PI KCjC  
         WE*L=_zDS  
        VodInfo *vodInfo = [[VodInfo alloc] init]; *:+&Sx L  
        vodInfo.title = [NSString stringWithFormat:@"IOS标题%ld", pos]; 0eP ]  
        vodInfo.desc = [NSString stringWithFormat:@"IOS描述%ld", pos]; #aeKK7[  
        vodInfo.cateId = @(19); <*/IV<  
        vodInfo.coverUrl = [NSString stringWithFormat:@"http://www.taobao.com/IOS封面URL%ld", pos]; 1LK`    
        vodInfo.tags = [NSString stringWithFormat:@"IOS标签1%ld, IOS标签2%ld", pos, pos]; ]27  
        NSString *ossObject = [NSString stringWithFormat:@"%@%ld.ios.demo.mp4",ossPrefix,pos]; 3tjF4C>h|  
        [uploader addFile:filePath endpoint:ossEndPoint bucket:ossBucketName object:ossObject vodInfo:vodInfo]; L/Ytkag  
        //    [uploader addFile:filePath endpoint:ossEndPoint bucket:ossBucketName object:ossObject]; QCD MRh n  
         J2BCaAwEP,  
        [percentList addObject:[NSString stringWithFormat:@"%d", 0]]; 9Ev<t \B  
        NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:0]; 2d#3LnO  
        [_tableFiles reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic]; +I$,Y~&`>  
        pos++; aob+_9o  
    }]; !2o1c  
ms]r1x"  
- (IBAction)addFile:(id)sender { Km)VOX[ZZ  
    [uploader start]; $1E'0M`  
} ^5D%)@~  
6L!/#d0  
调用sdk 就 \}n\cUy-  
-[AVURLAsset avcNaturalSize]: unrecognized selector sent to instance 0x600000424ae0 CQANex4&\  
2018-03-18 13:13:55.964985+0800 osstest[69251:7873380] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[AVURLAsset avcNaturalSize]: unrecognized selector sent to instance 0x600000424ae0' {O=PVW2S  
*** First throw call stack: 1`Ig A0V`"  
( z|$M,?r'  
    0   CoreFoundation                      0x000000010b14512b __exceptionPreprocess + 171 P{ K;vEp  
    1   libobjc.A.dylib                     0x0000000109c4af41 objc_exception_throw + 48 M/mm2?4  
    2   CoreFoundation                      0x000000010b1c6024 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132 $VxKv7:  
    3   CoreFoundation                      0x000000010b0c7f78 ___forwarding___ + 1432 1s_N!a  
    4   CoreFoundation                      0x000000010b0c7958 _CF_forwarding_prep_0 + 120 r6Qsh CA"  
    5   osstest                             0x0000000108f76089 -[VODUploadClient sendStartEvent] + 420 gWu<5Y=C  
    6   osstest                             0x0000000108f71291 -[VODUploadClient initMultiUpload] + 379 *8I"7'xh  
    7   osstest                             0x0000000108f70f5f -[VODUploadClient next] + 1057 }WV}in0  
    8   osstest                             0x0000000108f7000f -[VODUploadClient start] + 229 bk=ee7E7>  
    9   osstest                             0x0000000108f6ad4e -[VODUploadDemo start] + 46 }ip3dm  
    10  osstest                             0x0000000108f627cc -[ViewController test] + 76 a_3w/9L4r  
    11  UIKit                               0x000000010bf9c972 -[UIApplication sendAction:to:from:forEvent:] + 83 w$DHMpW'  
    12  UIKit                               0x000000010c11bc3c -[UIControl sendAction:to:forEvent:] + 67 `x]`<kS;  
    13  UIKit                               0x000000010c11bf59 -[UIControl _sendActionsForEvents:withEvent:] + 450 @Cml^v@`L  
    14  UIKit                               0x000000010c11ae86 -[UIControl touchesEnded:withEvent:] + 618 x:6c@2  
    15  UIKit                               0x000000010c012807 -[UIWindow _sendTouchesForEvent:] + 2807 %xv*#.<Vj  
    16  UIKit                               0x000000010c013f2a -[UIWindow sendEvent:] + 4124 |JLXgwML  
    17  UIKit                               0x000000010bfb7365 -[UIApplication sendEvent:] + 352 H:F'5Zt  
    18  UIKit                               0x000000010c903a1d __dispatchPreprocessedEventFromEventQueue + 2809 7tP%tp ez  
    19  UIKit                               0x000000010c906672 __handleEventQueueInternal + 5957 3c=>;g  
    20  CoreFoundation                      0x000000010b0e8101 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 +^DDWVp  
    21  CoreFoundation                      0x000000010b187f71 __CFRunLoopDoSource0 + 81 =z!^O T6eb  
    22  CoreFoundation                      0x000000010b0cca19 __CFRunLoopDoSources0 + 185 mIZ6[ ?  
    23  CoreFoundation                      0x000000010b0cbfff __CFRunLoopRun + 1279 P?ms^   
    24  CoreFoundation                      0x000000010b0cb889 CFRunLoopRunSpecific + 409 U0;pl2  
    25  GraphicsServices                    0x00000001113079c6 GSEventRunModal + 62 EO`eg]  
    26  UIKit                               0x000000010bf9b5d6 UIApplicationMain + 159 aD+4uGN  
    27  osstest                             0x0000000108f6389f main + 111 T I|h  
    28  libdyld.dylib                       0x000000010e69ad81 start + 1 }/lyrjV  
    29  ???                                 0x0000000000000001 0x0 + 1 G*f\ /  
)
[ 此帖被kaizi在2018-03-18 13:49重新编辑 ]
发表主题 回复主题
« 返回列表上一主题下一主题

限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
验证问题: 阿里云官网域名是什么? 正确答案:www.aliyun.com
上一个 下一个