Skip to content

Commit

Permalink
Fix #395
Browse files Browse the repository at this point in the history
  • Loading branch information
changsanjiang committed Jan 7, 2021
1 parent 50b1f17 commit 76438b3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion SJBaseVideoPlayer.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'SJBaseVideoPlayer'
s.version = '3.5.0'
s.version = '3.5.1'
s.summary = 'video player.'
s.description = 'https://github.com/changsanjiang/SJBaseVideoPlayer/blob/master/README.md'
s.homepage = 'https://github.com/changsanjiang/SJBaseVideoPlayer'
Expand Down
5 changes: 5 additions & 0 deletions SJBaseVideoPlayer/AVPlayer/SJAVMediaPlaybackController.m
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ - (void)receivedApplicationDidBecomeActiveNotification {

SJAVMediaPlayerLayerView *view = self.currentPlayerView;
view.layer.player = self.currentPlayer.avPlayer;

// fix: https://github.com/changsanjiang/SJVideoPlayer/issues/395
if ( self.currentPlayerView.isReadyForDisplay ) {
[self.currentPlayerView setScreenshot:nil];
}
}

- (void)receivedApplicationDidEnterBackgroundNotification {
Expand Down

0 comments on commit 76438b3

Please sign in to comment.