|
@@ -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
|