Commit 8744e5d636c2a190f56a1ccf831a7ac163673f56
1 parent
4ae7870b
提交更改
Showing
3 changed files
with
16 additions
and
16 deletions
CNLiveImagePickerController.podspec
CNLiveImagePickerController/Classes/TZPhotoPreviewCell.m
| ... | ... | @@ -373,14 +373,14 @@ |
| 373 | 373 | - (void)configSubviews { |
| 374 | 374 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(pausePlayerAndShowNaviBar) name:UIApplicationWillResignActiveNotification object:nil]; |
| 375 | 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 | 55 | [self configMoviePlayer]; |
| 56 | 56 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(pausePlayerAndShowNaviBar) name:UIApplicationWillResignActiveNotification object:nil]; |
| 57 | 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 | 67 | // [self videoOrAudioEnterOrOut]; | ... | ... |