获取网上流视频总时长和当前播放时长

摘要: 1.获取网上流视频总时长 NSURL *movieURL = [NSURL URLWithString:self.myVideoUrlStr]; NSDictionary *opts = [NSDictionarydictionaryWithObject: [NSNumbernumberWithBool:NO]forKey:AVURLAssetPreferPreciseDurationAndTimingKey]; AVURLAsset *urlAsset = [AVURLAsset URLAssetWithURL:movieURL options:opts]; // 初始化视频媒体文件 ... 阅读全文
posted @ 2012-11-22 15:13 一梦浮生2012 阅读(1197) 评论(0) 推荐(0)