From fa03181867680e6658de11350863f93d2c28cc82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=B3=A2?= <1106355439@qq.com> Date: Fri, 10 Jan 2020 10:37:54 +0800 Subject: [PATCH] [fix] fixed 278 --- Video/YBIBVideoCell.m | 2 +- Video/YBIBVideoView.m | 2 -- YBImageBrowser.podspec | 2 +- YBImageBrowserDemo.xcodeproj/project.pbxproj | 4 ++-- YBImageBrowserDemo/Info.plist | 8 ++++---- 5 files changed, 8 insertions(+), 10 deletions(-) diff --git a/Video/YBIBVideoCell.m b/Video/YBIBVideoCell.m index e7148e7..609b911 100644 --- a/Video/YBIBVideoCell.m +++ b/Video/YBIBVideoCell.m @@ -219,7 +219,7 @@ - (void)yb_videoData:(YBIBVideoData *)data readyForAVAsset:(AVAsset *)asset { } - (void)yb_videoData:(YBIBVideoData *)data readyForThumbImage:(UIImage *)image { - if (!self.videoView.isPlaying && !self.videoView.isPreparingPlay) { + if (!self.videoView.isPlaying) { self.videoView.thumbImageView.hidden = NO; } diff --git a/Video/YBIBVideoView.m b/Video/YBIBVideoView.m index 36a13c2..821e984 100644 --- a/Video/YBIBVideoView.m +++ b/Video/YBIBVideoView.m @@ -100,8 +100,6 @@ - (void)hidePlayButton { #pragma mark - private - (void)videoJumpWithScale:(float)scale { - if (!self.isPlaying) return; - CMTime startTime = CMTimeMakeWithSeconds(scale, _player.currentTime.timescale); AVPlayer *tmpPlayer = _player; diff --git a/YBImageBrowser.podspec b/YBImageBrowser.podspec index 9885908..b8c035b 100644 --- a/YBImageBrowser.podspec +++ b/YBImageBrowser.podspec @@ -5,7 +5,7 @@ Pod::Spec.new do |s| s.name = "YBImageBrowser" - s.version = "3.0.8" + s.version = "3.0.9" s.summary = "iOS image browser / iOS 图片浏览器" diff --git a/YBImageBrowserDemo.xcodeproj/project.pbxproj b/YBImageBrowserDemo.xcodeproj/project.pbxproj index 89af513..ea11e73 100644 --- a/YBImageBrowserDemo.xcodeproj/project.pbxproj +++ b/YBImageBrowserDemo.xcodeproj/project.pbxproj @@ -975,7 +975,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = yangbo.YBImageBrowserDemo1; + PRODUCT_BUNDLE_IDENTIFIER = yangbo.YBImageBrowserDemo2; PRODUCT_NAME = "$(TARGET_NAME)"; TARGETED_DEVICE_FAMILY = "1,2"; }; @@ -995,7 +995,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = yangbo.YBImageBrowserDemo1; + PRODUCT_BUNDLE_IDENTIFIER = yangbo.YBImageBrowserDemo; PRODUCT_NAME = "$(TARGET_NAME)"; TARGETED_DEVICE_FAMILY = "1,2"; }; diff --git a/YBImageBrowserDemo/Info.plist b/YBImageBrowserDemo/Info.plist index 2d9e8db..afc75e6 100644 --- a/YBImageBrowserDemo/Info.plist +++ b/YBImageBrowserDemo/Info.plist @@ -2,10 +2,6 @@ - LSApplicationCategoryType - - UIViewControllerBasedStatusBarAppearance - CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleDisplayName @@ -24,6 +20,8 @@ 1.0 CFBundleVersion 1 + LSApplicationCategoryType + LSRequiresIPhoneOS NSAppTransportSecurity @@ -57,5 +55,7 @@ UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight + UIViewControllerBasedStatusBarAppearance +