AliyunVodPlayer *player = [[AliyunVodPlayer alloc]init];
player.delegate = self;
player.autoPlay = NO;
player.circlePlay = YES;
[player setDisplayMode:AliyunVodPlayerDisplayModeFitWithCropping];
NSArray *pathArray = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *docDir = [pathArray objectAtIndex:0];
NSString *destFilePath = [docDir stringByAppendingPathComponent:[NSString stringWithFormat:@"video%@",[self getCurrentTime]]];
[player setPlayingCache:YES saveDir:destFilePath maxSize:1024 maxDuration:10000];
新的播放器状态:加载中
2019-03-14 17:28:16.834660+0800 SmartMonitors[4805:1342898] newstate is 3,current state is 7
新的播放器状态:播放
2019-03-14 17:28:25.752100+0800 SmartMonitors[4805:1342898] newstate is 7,current state is 3
新的播放器状态:加载中
2019-03-14 17:28:25.780540+0800 SmartMonitors[4805:1342898] newstate is 3,current state is 7
新的播放器状态:播放
2019-03-14 17:28:25.797378+0800 SmartMonitors[4805:1343424] AudioOutputUnitStop
2019-03-14 17:28:34.764349+0800 SmartMonitors[4805:1342898] newstate is 7,current state is 3
新的播放器状态:加载中
2019-03-14 17:28:34.781092+0800 SmartMonitors[4805:1342898] newstate is 3,current state is 7
新的播放器状态:播放
2019-03-14 17:28:34.794077+0800 SmartMonitors[4805:1343424] AudioOutputUnitStop
一直在加载中和播放徘徊,循环播放也是如此
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。