Browse Source

1.推流页导航栏开关处理

huangxiaodong 9 months ago
parent
commit
df9796bdb1
1 changed files with 15 additions and 0 deletions
  1. 15 0
      创维盒子/双子星云手机/webRtc/webRtcPlayerViewController.m

+ 15 - 0
创维盒子/双子星云手机/webRtc/webRtcPlayerViewController.m

@@ -145,6 +145,7 @@
 {
     _bottomContrView = [[webRtcPlayerBottomContrView alloc] init];
     [self.view addSubview:_bottomContrView];
+    [self getPlayerBottomNavShowOrHidefun];
     KWeakSelf
     _bottomContrView.didClickButtonFun = ^(NSInteger tag) {
         [weakSelf didClickBottomFunBy:tag];
@@ -309,12 +310,26 @@
     [_mediaStream sendKey:keyType];
 }
 
+#pragma mark -- /*底部导航栏开关通知*/
+- (void)getPlayerBottomNavShowOrHidefun
+{
+    BOOL haveShowBottonNavType = ![HWDataManager getBoolWithKey:Consn_player_Nav_hide];
+    
+    if(haveShowBottonNavType){
+        _bottomContrView.hidden = NO;
+    }
+    else{
+        _bottomContrView.hidden = YES;
+    }
+}
+
 #pragma mark -- /*通知添加与移除*/
 - (void)addKVOObserverFun
 {
     outputVolumeKVO = YES;
     [[AVAudioSession sharedInstance] addObserver:self forKeyPath:@"outputVolume" options:NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld context:(void *)[AVAudioSession sharedInstance]];
     
+    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(getPlayerBottomNavShowOrHidefun)  name:getPlayerBottomNavNotification  object:nil];
 }
 
 - (void)removeKVOObserverFun