diff --git a/PhotoBrowser/ZLPhotoActionSheet.h b/PhotoBrowser/ZLPhotoActionSheet.h index c2465c6f..6f60d6e3 100644 --- a/PhotoBrowser/ZLPhotoActionSheet.h +++ b/PhotoBrowser/ZLPhotoActionSheet.h @@ -5,7 +5,7 @@ // Created by long on 15/11/25. // Copyright © 2015年 long. All rights reserved. // -//pods version 2.7.6 - 2018.11.29 update +//pods version 2.7.7 - 2019.01.13 update #import #import "ZLPhotoConfiguration.h" diff --git a/PhotoBrowser/ZLPlayer.m b/PhotoBrowser/ZLPlayer.m index e7617c20..f23c12ca 100644 --- a/PhotoBrowser/ZLPlayer.m +++ b/PhotoBrowser/ZLPlayer.m @@ -47,7 +47,9 @@ - (void)setupUI - (void)setVideoUrl:(NSURL *)videoUrl { _player = [AVPlayer playerWithURL:videoUrl]; - _player.automaticallyWaitsToMinimizeStalling = NO; + if (@available(iOS 10.0, *)) { + _player.automaticallyWaitsToMinimizeStalling = NO; + } [_player addObserver:self forKeyPath:@"status" options:NSKeyValueObservingOptionNew context:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(playFinished) name:AVPlayerItemDidPlayToEndTimeNotification object:nil]; diff --git a/ZLPhotoBrowser.podspec b/ZLPhotoBrowser.podspec index 532b8059..ed8cc014 100644 --- a/ZLPhotoBrowser.podspec +++ b/ZLPhotoBrowser.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'ZLPhotoBrowser' - s.version = '2.7.6' + s.version = '2.7.7' s.summary = 'A simple way to multiselect photos from ablum, force touch to preview photo, support portrait and landscape, edit photo, multiple languages(Chinese,English,Japanese)' s.homepage = 'https://github.com/longitachi/ZLPhotoBrowser' s.license = 'MIT' diff --git a/ZLPhotoBrowser/Info.plist b/ZLPhotoBrowser/Info.plist index d0775a36..45b5cc07 100644 --- a/ZLPhotoBrowser/Info.plist +++ b/ZLPhotoBrowser/Info.plist @@ -19,7 +19,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 2.7.6 + 2.7.7 CFBundleSignature ???? CFBundleVersion