From 3f349a63f727a71715a3bed059af4619ebf9eccc Mon Sep 17 00:00:00 2001 From: yujiaxinwt <1157613664@qq.com> Date: Wed, 28 Jun 2023 16:59:01 +0800 Subject: [PATCH] =?UTF-8?q?sdk=E9=A1=B5=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sdk/demo/demo.html | 55 +++++++++++++++++++++++++++++----- sdk/enter.html | 13 +------- sdk/index.html | 50 ++++++++++++++++++++----------- sdk/src/AppController.js | 12 +++----- sdk/src/AutoRotation.js | 3 +- sdk/src/CanvasPlayer.js | 4 ++- sdk/src/CloudApp.js | 18 ++++++++++- sdk/src/Fullscreen.js | 33 +++++++++++++++----- sdk/src/Util.js | 6 ++-- sdk/src/config/commonConfig.js | 4 ++- 10 files changed, 138 insertions(+), 60 deletions(-) diff --git a/sdk/demo/demo.html b/sdk/demo/demo.html index bf57dbe..2eff316 100644 --- a/sdk/demo/demo.html +++ b/sdk/demo/demo.html @@ -22,13 +22,14 @@ Copyright 2022 Huawei Cloud Computing Technology Co., Ltd. 云手机SDK demo @@ -87,7 +102,7 @@ Copyright 2022 Huawei Cloud Computing Technology Co., Ltd.
+ class="container">
+ class="play-ctr-btn" + onclick="cloudapp.fullscreenToggle('fullscreen-container')">Fullscreen 信任目标机器
diff --git a/sdk/enter.html b/sdk/enter.html index 119aead..b108e9f 100644 --- a/sdk/enter.html +++ b/sdk/enter.html @@ -79,7 +79,7 @@
-
+
请输入正确的ip
@@ -174,17 +174,6 @@ pageContent.classList.add('pc-size'); } - if (sessionStorage.getItem('cloudPhoneHost')) { - let localHref = window.location.href + 'index'; - if (window.location.href.indexOf('enter.html') > -1) { - localHref = window.location.href.replace('enter.html', 'index.html'); - if (localHref === window.location.href) { - localHref = window.location.href.replace('enter.html', 'demo.html'); - } - } - window.location.href = localHref; - } - ipInputEle.addEventListener('blur', function () { const ipValue = ipInputEle.value; if (!ipExp.test(ipValue)) { diff --git a/sdk/index.html b/sdk/index.html index f1d20be..77c56e9 100644 --- a/sdk/index.html +++ b/sdk/index.html @@ -29,11 +29,6 @@ Copyright 2022 Huawei Cloud Computing Technology Co., Ltd. padding: 0; } - .fullscreen-container { - margin: 20px auto 10px; - width: 1200px; - height: 600px; - } .container { width: 100%; @@ -89,22 +84,33 @@ Copyright 2022 Huawei Cloud Computing Technology Co., Ltd. border-radius: 10px; } + .play-ctr-btn { + display: inline-block; + background: #fff; + border: 1px solid #595959; + text-align: center; + height: 30px; + line-height: 30px; + border-radius: 5px; + font-size: 14px; + } +
+ class="fullscreen-container">
+ class="broadway container" + workers="false" + render="true" + webgl="auto">
+ id="loading"> + width="50" + height="50"> Exit 信任目标机器 + target="_blank" + class="play-ctr-btn" + href="">信任目标机器