1、avplayer 的
automaticallyWaitsToMinimizeStalling 不设置为NO,导致缓存全部完成才开始播放
2、
UISlider与其他事件冲突导致的拖拽事件不响应
3、音量大小的判断
volumeView = [[MPVolumeView alloc] initWithFrame:CGRectMake(-100,0,50,50)];
[[UIApplication sharedApplication].keyWindow addSubview:volumeView];
dispatch_time_t time = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC));
dispatch_after(time, dispatch_get_main_queue(), ^{
for (UIView *view in [volumeView subviews]){
if ([view.class.description isEqualToString:@"MPVolumeSlider"]){
UISlider *slider = (UISlider*)view;
if (slider.value <= 0) {
//请调高音量后再收听
}
break;
}
}
[volumeView removeFromSuperview];
volumeView = nil;