[*] 状态查询
This commit is contained in:
@@ -72,11 +72,11 @@ export default {
|
|||||||
videoConsumer: null,
|
videoConsumer: null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
async mounted() {
|
||||||
this.audio = this.$refs.audio;
|
this.audio = this.$refs.audio;
|
||||||
this.video = this.$refs.video;
|
this.video = this.$refs.video;
|
||||||
this.client.proxy = this;
|
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.clientRecord = status.clientRecording;
|
||||||
this.serverRecord = status.serverRecording;
|
this.serverRecord = status.serverRecording;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -70,11 +70,11 @@ export default {
|
|||||||
videoStream: null,
|
videoStream: null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
async mounted() {
|
||||||
this.audio = this.$refs.audio;
|
this.audio = this.$refs.audio;
|
||||||
this.video = this.$refs.video;
|
this.video = this.$refs.video;
|
||||||
this.client.proxy = this;
|
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.clientRecord = status.clientRecording;
|
||||||
this.serverRecord = status.serverRecording;
|
this.serverRecord = status.serverRecording;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1767,7 +1767,7 @@ class Taoyao extends RemoteClient {
|
|||||||
}
|
}
|
||||||
async clientStatus(clientId) {
|
async clientStatus(clientId) {
|
||||||
const response = await this.request(
|
const response = await this.request(
|
||||||
protocol.buildMessage("client::list", { clientId })
|
protocol.buildMessage("client::status", { clientId })
|
||||||
);
|
);
|
||||||
return response.body;
|
return response.body;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user