Commit 8744e5d636c2a190f56a1ccf831a7ac163673f56

Authored by 梁星国
1 parent 4ae7870b

提交更改

CNLiveImagePickerController.podspec
... ... @@ -8,7 +8,7 @@
8 8  
9 9 Pod::Spec.new do |s|
10 10 s.name = 'CNLiveImagePickerController'
11   - s.version = '0.0.11'
  11 + s.version = '0.0.12'
12 12 s.summary = '相册'
13 13  
14 14 # This description is used to generate tags and improve search results.
... ...
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];
... ...