[*] 状态查询
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
@@ -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;
|
||||
},
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user