Skip to content

Commit

Permalink
pod version 3.2.14
Browse files Browse the repository at this point in the history
  • Loading branch information
renzifeng committed Oct 25, 2019
1 parent 76d7f57 commit 16c7009
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ZFPlayer.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'ZFPlayer'
s.version = '3.2.13'
s.version = '3.2.14'
s.summary = 'A good player made by renzifeng'
s.homepage = 'https://github.com/renzifeng/ZFPlayer'
s.license = { :type => 'MIT', :file => 'LICENSE' }
Expand Down
16 changes: 10 additions & 6 deletions ZFPlayer/Classes/ControlView/ZFPlayerControlView.m
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,16 @@ - (void)showControlViewWithAnimated:(BOOL)animated {
}

/// 音量改变的通知
- (void)volumeChanged:(NSNotification *)notification {
float volume = [[[notification userInfo] objectForKey:@"AVSystemController_AudioVolumeNotificationParameter"] floatValue];
if (self.player.isFullScreen) {
[self.volumeBrightnessView updateProgress:volume withVolumeBrightnessType:ZFVolumeBrightnessTypeVolume];
} else {
[self.volumeBrightnessView addSystemVolumeView];
- (void)volumeChanged:(NSNotification *)notification {
NSDictionary *userInfo = notification.userInfo;
NSString *reasonstr = userInfo[@"AVSystemController_AudioVolumeChangeReasonNotificationParameter"];
if ([reasonstr isEqualToString:@"ExplicitVolumeChange"]) {
float volume = [ userInfo[@"AVSystemController_AudioVolumeNotificationParameter"] floatValue];
if (self.player.isFullScreen) {
[self.volumeBrightnessView updateProgress:volume withVolumeBrightnessType:ZFVolumeBrightnessTypeVolume];
} else {
[self.volumeBrightnessView addSystemVolumeView];
}
}
}

Expand Down

0 comments on commit 16c7009

Please sign in to comment.