[*] 日常优化
This commit is contained in:
@@ -154,7 +154,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
async connectSignal() {
|
async connectSignal() {
|
||||||
this.taoyao = new Taoyao({ ...this.config });
|
this.taoyao = new Taoyao({ ...this.config });
|
||||||
// this.taoyao = new Taoyao({ ...this.config, fileVideo: video标签对象, videoSource: "file" });
|
// this.taoyao = new Taoyao({ ...this.config, fileVideo: video对象, videoSource: "file" });
|
||||||
await this.taoyao.connectSignal(this.callback);
|
await this.taoyao.connectSignal(this.callback);
|
||||||
this.signalVisible = false;
|
this.signalVisible = false;
|
||||||
this.remoteClients = this.taoyao.remoteClients;
|
this.remoteClients = this.taoyao.remoteClients;
|
||||||
|
|||||||
@@ -1436,8 +1436,7 @@ class Taoyao extends RemoteClient {
|
|||||||
* @param {*} clientId 终端ID
|
* @param {*} clientId 终端ID
|
||||||
*/
|
*/
|
||||||
controlPhotograph(clientId) {
|
controlPhotograph(clientId) {
|
||||||
const me = this;
|
this.request(protocol.buildMessage("control::photograph", {
|
||||||
me.request(protocol.buildMessage("control::photograph", {
|
|
||||||
to: clientId
|
to: clientId
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
@@ -1451,7 +1450,6 @@ class Taoyao extends RemoteClient {
|
|||||||
defaultControlPhotograph(message, body) {
|
defaultControlPhotograph(message, body) {
|
||||||
console.debug("拍照", message);
|
console.debug("拍照", message);
|
||||||
this.push(message);
|
this.push(message);
|
||||||
// TODO:拍照
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user