[*] 状态查询

This commit is contained in:
acgist
2023-06-11 10:11:38 +08:00
parent fa7c87d957
commit aef9b76815
3 changed files with 5 additions and 5 deletions

View File

@@ -72,11 +72,11 @@ export default {
videoConsumer: null,
};
},
mounted() {
async mounted() {
this.audio = this.$refs.audio;
this.video = this.$refs.video;
this.client.proxy = this;
const status = this.taoyao.clientStatus(this.client.clientId);
const status = await this.taoyao.clientStatus(this.client.clientId);
this.clientRecord = status.clientRecording;
this.serverRecord = status.serverRecording;
},

View File

@@ -70,11 +70,11 @@ export default {
videoStream: null,
};
},
mounted() {
async mounted() {
this.audio = this.$refs.audio;
this.video = this.$refs.video;
this.client.proxy = this;
const status = this.taoyao.clientStatus(this.client.clientId);
const status = await this.taoyao.clientStatus(this.client.clientId);
this.clientRecord = status.clientRecording;
this.serverRecord = status.serverRecording;
},

View File

@@ -1767,7 +1767,7 @@ class Taoyao extends RemoteClient {
}
async clientStatus(clientId) {
const response = await this.request(
protocol.buildMessage("client::list", { clientId })
protocol.buildMessage("client::status", { clientId })
);
return response.body;
}