diff --git a/taoyao-client-web/src/components/RemoteClient.vue b/taoyao-client-web/src/components/RemoteClient.vue index d3fea46..6d994a7 100644 --- a/taoyao-client-web/src/components/RemoteClient.vue +++ b/taoyao-client-web/src/components/RemoteClient.vue @@ -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; }, diff --git a/taoyao-client-web/src/components/SessionClient.vue b/taoyao-client-web/src/components/SessionClient.vue index 9492283..6bfd256 100644 --- a/taoyao-client-web/src/components/SessionClient.vue +++ b/taoyao-client-web/src/components/SessionClient.vue @@ -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; }, diff --git a/taoyao-client-web/src/components/Taoyao.js b/taoyao-client-web/src/components/Taoyao.js index 7cd0b36..1c83a4c 100644 --- a/taoyao-client-web/src/components/Taoyao.js +++ b/taoyao-client-web/src/components/Taoyao.js @@ -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; }