【发布时间】:2012-08-17 04:13:31
【问题描述】:
为什么第二个 num 是 0.00000 和底部进程
NSURL *movieURL = [NSURL URLWithString:@"s26a.mov"];
NSDictionary *opts = [NSDictionary dictionaryWithObject:[NSNumber numberWithBool:NO]
forKey:AVURLAssetPreferPreciseDurationAndTimingKey];
AVURLAsset *urlAsset = [AVURLAsset URLAssetWithURL:movieURL options:opts];
float minute = 0;
float second = 0;
second = urlAsset.duration.value / urlAsset.duration.timescale;
NSLog(@"movie duration : %f", second);
【问题讨论】:
标签: iphone ios cocos2d-iphone