Commit 8744e5d636c2a190f56a1ccf831a7ac163673f56
1 parent
4ae7870b
提交更改
Showing
3 changed files
with
16 additions
and
16 deletions
CNLiveImagePickerController.podspec
| @@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
| 8 | 8 | ||
| 9 | Pod::Spec.new do |s| | 9 | Pod::Spec.new do |s| |
| 10 | s.name = 'CNLiveImagePickerController' | 10 | s.name = 'CNLiveImagePickerController' |
| 11 | - s.version = '0.0.11' | 11 | + s.version = '0.0.12' |
| 12 | s.summary = '相册' | 12 | s.summary = '相册' |
| 13 | 13 | ||
| 14 | # This description is used to generate tags and improve search results. | 14 | # This description is used to generate tags and improve search results. |
CNLiveImagePickerController/Classes/TZPhotoPreviewCell.m
| @@ -373,14 +373,14 @@ | @@ -373,14 +373,14 @@ | ||
| 373 | - (void)configSubviews { | 373 | - (void)configSubviews { |
| 374 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(pausePlayerAndShowNaviBar) name:UIApplicationWillResignActiveNotification object:nil]; | 374 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(pausePlayerAndShowNaviBar) name:UIApplicationWillResignActiveNotification object:nil]; |
| 375 | #pragma mark - TODO: 2019.11.12 需要其他库依赖 | 375 | #pragma mark - TODO: 2019.11.12 需要其他库依赖 |
| 376 | -// [[NSNotificationCenter defaultCenter] addObserver:self | ||
| 377 | -// selector:@selector(pauseVideoView:) name:CNVideoOrAudioEnterNotification | ||
| 378 | -// object:nil]; | ||
| 379 | -// | ||
| 380 | -// [[NSNotificationCenter defaultCenter] addObserver:self | ||
| 381 | -// selector:@selector(playVideoView:) name:CNVideoOrAudioOutNotification | ||
| 382 | -// object:nil]; | ||
| 383 | - //////////////// | 376 | + [[NSNotificationCenter defaultCenter] addObserver:self |
| 377 | + selector:@selector(pauseVideoView:) name:@"CNVideoOrAudioEnterNotification" | ||
| 378 | + object:nil]; | ||
| 379 | + | ||
| 380 | + [[NSNotificationCenter defaultCenter] addObserver:self | ||
| 381 | + selector:@selector(playVideoView:) name:@"CNVideoOrAudioOutNotification" | ||
| 382 | + object:nil]; | ||
| 383 | + ////////////// | ||
| 384 | 384 | ||
| 385 | } | 385 | } |
| 386 | 386 |
CNLiveImagePickerController/Classes/TZVideoPlayerController.m
| @@ -55,13 +55,13 @@ | @@ -55,13 +55,13 @@ | ||
| 55 | [self configMoviePlayer]; | 55 | [self configMoviePlayer]; |
| 56 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(pausePlayerAndShowNaviBar) name:UIApplicationWillResignActiveNotification object:nil]; | 56 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(pausePlayerAndShowNaviBar) name:UIApplicationWillResignActiveNotification object:nil]; |
| 57 | #pragma mark - TODO: 2019.11.12 需要其他库依赖 | 57 | #pragma mark - TODO: 2019.11.12 需要其他库依赖 |
| 58 | -// [[NSNotificationCenter defaultCenter] addObserver:self | ||
| 59 | -// selector:@selector(pauseVideoView:) name:CNVideoOrAudioEnterNotification | ||
| 60 | -// object:nil]; | ||
| 61 | -// | ||
| 62 | -// [[NSNotificationCenter defaultCenter] addObserver:self | ||
| 63 | -// selector:@selector(playVideoView:) name:CNVideoOrAudioOutNotification | ||
| 64 | -// object:nil]; | 58 | + [[NSNotificationCenter defaultCenter] addObserver:self |
| 59 | + selector:@selector(pauseVideoView:) name:@"CNVideoOrAudioEnterNotification" | ||
| 60 | + object:nil]; | ||
| 61 | + | ||
| 62 | + [[NSNotificationCenter defaultCenter] addObserver:self | ||
| 63 | + selector:@selector(playVideoView:) name:@"CNVideoOrAudioOutNotification" | ||
| 64 | + object:nil]; | ||
| 65 | ///////////////////////////// | 65 | ///////////////////////////// |
| 66 | 66 | ||
| 67 | // [self videoOrAudioEnterOrOut]; | 67 | // [self videoOrAudioEnterOrOut]; |