Skip to content

Commit

Permalink
修复 结果页(视频剪辑的导出结果页面)在后台播放的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
changsanjiang committed Apr 18, 2018
1 parent 2b928ac commit 0241b5e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion SJVideoPlayer.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Pod::Spec.new do |s|
s.name = 'SJVideoPlayer'
s.version = '2.0.6.1'
s.version = '2.0.6.2'
s.summary = 'video player.'
s.description = 'https://github.com/changsanjiang/SJVideoPlayer/blob/master/README.md'
s.homepage = 'https://github.com/changsanjiang/SJVideoPlayer'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,12 @@ - (SJVideoPlayerRegistrar *)registrar {
[self.videoPlayer play];
};

_registrar.willResignActive = ^(SJVideoPlayerRegistrar * _Nonnull registrar) {
__strong typeof(_self) self = _self;
if ( !self ) return;
[self.videoPlayer pause];
};

_registrar.newDeviceAvailable = ^(SJVideoPlayerRegistrar * _Nonnull registrar) {
__strong typeof(_self) self = _self;
if ( !self ) return;
Expand Down
Binary file modified SJVideoPlayerProject/.DS_Store
Binary file not shown.
Binary file not shown.

0 comments on commit 0241b5e

Please sign in to comment.