Forráskód Böngészése

IOS端同端扫码同一个设备进入推流,未弹被挤掉弹窗(偶现)

huangxiaodong 2 éve%!(EXTRA string=óta)
szülő
commit
b415d6aba9

+ 3 - 0
创维盒子/双子星云手机/AppDelegate/Config/Notification.h

@@ -41,6 +41,9 @@
 /*完成引导通知*/
 #define GuideOkNotification                 @"GuideOk"
 
+/*主动上锁通知*/
+#define lockBypwdNotification                 @"lockBypwdNot"
+
 #define PlayerViewControlBtnTouchBeganNotification        @"PlayerViewControlBtnTouchBeganNotification"        // 云手机推流界面 控制按钮开始点击
 #define PlayerViewControlBtnTouchEndNotification          @"PlayerViewControlBtnTouchEndNotification"        /// // 云手机推流界面 控制按钮结束点击
 ///

+ 8 - 0
创维盒子/双子星云手机/AppDelegate/SceneDelegate.m

@@ -41,6 +41,8 @@
     if (scene) {
         [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(guideOk:)  name:GuideOkNotification  object:nil];
         
+        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(showLockViewFun:)  name:lockBypwdNotification  object:nil];
+        
         UIWindowScene *windowScene = (UIWindowScene *)scene;
         self.window = [[UIWindow alloc] initWithWindowScene:windowScene];
         self.window.frame = CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height);
@@ -541,4 +543,10 @@
     }];
 }
 
+
+#pragma mark 主动上锁
+- (void)showLockViewFun:(NSNotification*)not
+{
+    [self showCalculatorVC];
+}
 @end

+ 3 - 1
创维盒子/双子星云手机/CloudPlayer/PlayerViewController+otherDelegate.m

@@ -13,7 +13,9 @@
 - (void)okBtnClickPressed{
     //HLog("11111");
     
-    [[NSNotificationCenter defaultCenter] postNotificationName:GuideOkNotification object:@"isLoginAgainType"];
+    self.isLoginAgainType = YES;
+    
+    [[NSNotificationCenter defaultCenter] postNotificationName:lockBypwdNotification object:nil];
 }
 - (void)cancelBtnClickPressed{
     HLog("强制退出app");

+ 1 - 2
创维盒子/双子星云手机/CloudPlayer/PlayerViewController.mm

@@ -1600,8 +1600,7 @@ NSDate *lastVideoTome;/*上一帧数据时间*/
         _canShowImgAndVoiceType = isCan;
         
         if(_isLoginAgainType ){
-            [self opencommandChannelManagerrc_openURL];
-            //_isLoginAgainType = false;
+            [self fristConnectNeedGiveAMsgFun];
         }
     }
     else{