decode not work

This commit is contained in:
rustdesk
2022-01-20 21:58:28 +08:00
Unverified
parent 3dcbbcc416
commit 50834353b2
8 changed files with 468 additions and 272 deletions

View File

@@ -21,8 +21,11 @@ if (app) {
<div id="text" style="line-height: 2em"></div>
<button id="cancel" onclick="cancel();">Cancel</button>
</div>
<canvas id="player"></canvas>
`;
let player;
document.body.onload = () => {
const host = document.querySelector('#host');
host.value = localStorage.getItem('host');
@@ -30,6 +33,7 @@ if (app) {
id.value = localStorage.getItem('id');
const key = document.querySelector('#key');
key.value = localStorage.getItem('key');
player = YUVCanvas.attach(document.getElementById("player"))
};
window.connect = () => {
@@ -42,6 +46,9 @@ if (app) {
const func = async () => {
const conn = globals.newConn();
conn.setMsgbox(msgbox);
conn.setDraw((f) => {
player.drawFrame(f);
});
document.querySelector('div#status').style.display = 'block';
document.querySelector('div#connect').style.display = 'none';
document.querySelector('div#text').innerHTML = 'Connecting ...';