diff --git a/Project/Project.xcworkspace/xcuserdata/changsanjiang.xcuserdatad/UserInterfaceState.xcuserstate b/Project/Project.xcworkspace/xcuserdata/changsanjiang.xcuserdatad/UserInterfaceState.xcuserstate index 1147e8c..5302211 100644 Binary files a/Project/Project.xcworkspace/xcuserdata/changsanjiang.xcuserdatad/UserInterfaceState.xcuserstate and b/Project/Project.xcworkspace/xcuserdata/changsanjiang.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/SJBaseVideoPlayer.podspec b/SJBaseVideoPlayer.podspec index a28c9eb..a702d00 100644 --- a/SJBaseVideoPlayer.podspec +++ b/SJBaseVideoPlayer.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'SJBaseVideoPlayer' - s.version = '3.7.7' + s.version = '3.7.7.1' s.summary = 'video player.' s.description = 'https://github.com/changsanjiang/SJBaseVideoPlayer/blob/master/README.md' s.homepage = 'https://github.com/changsanjiang/SJBaseVideoPlayer' diff --git a/SJBaseVideoPlayer/AVPlayer/Core/SJAVPlayerItemObservation.m b/SJBaseVideoPlayer/AVPlayer/Core/SJAVPlayerItemObservation.m index cc2ab4a..12ae645 100644 --- a/SJBaseVideoPlayer/AVPlayer/Core/SJAVPlayerItemObservation.m +++ b/SJBaseVideoPlayer/AVPlayer/Core/SJAVPlayerItemObservation.m @@ -36,13 +36,13 @@ - (void)_registerObserver { [_playerItem addObserver:self forKeyPath:kLoadedTimeRanges options:options context:&kLoadedTimeRanges]; __weak typeof(self) _self = self; - [NSNotificationCenter.defaultCenter addObserverForName:AVPlayerItemDidPlayToEndTimeNotification object:self queue:NSOperationQueue.mainQueue usingBlock:^(NSNotification * _Nonnull note) { + [NSNotificationCenter.defaultCenter addObserverForName:AVPlayerItemDidPlayToEndTimeNotification object:_playerItem queue:NSOperationQueue.mainQueue usingBlock:^(NSNotification * _Nonnull note) { __strong typeof(_self) self = _self; if ( self == nil ) return; [self playerItemDidPlayToEndTime:note]; }]; - [NSNotificationCenter.defaultCenter addObserverForName:AVPlayerItemNewAccessLogEntryNotification object:self queue:nil usingBlock:^(NSNotification * _Nonnull note) { + [NSNotificationCenter.defaultCenter addObserverForName:AVPlayerItemNewAccessLogEntryNotification object:_playerItem queue:nil usingBlock:^(NSNotification * _Nonnull note) { dispatch_async(dispatch_get_global_queue(0, 0), ^{ __strong typeof(_self) self = _self; if ( self == nil ) return;