Browse Source

live页面,删除一个不再使用的一些变量和函数

pull/448/head
xiaoxie 2 years ago
parent
commit
b81660536c
  1. 33
      web_src/src/components/live.vue

33
web_src/src/components/live.vue

@ -39,30 +39,15 @@ export default {
},
data() {
return {
showVideoDialog: true,
hasAudio: false,
videoUrl: [''],
spilt: 1,//
playerIdx: 0,//
deviceList: [], //
currentDevice: {}, //
videoComponentList: [],
updateLooper: 0, //
currentDeviceChannelsLenth: 0,
winHeight: window.innerHeight - 200,
currentPage: 1,
count: 15,
total: 0,
getDeviceListLoading: false,
//channel
searchSrt: "",
channelType: "",
online: "",
channelTotal: 0,
deviceChannelList: [],
loading: false
};
},
@ -167,13 +152,6 @@ export default {
this.sendDevicePush({deviceId, channelId})
}
},
convertImageToCanvas(image) {
var canvas = document.createElement("canvas");
canvas.width = image.width;
canvas.height = image.height;
canvas.getContext("2d").drawImage(image, 0, 0);
return canvas;
},
shot(e) {
// console.log(e)
// send({code:'image',data:e})
@ -211,17 +189,6 @@ export default {
console.log(data);
window.localStorage.setItem('playData', JSON.stringify(data))
},
loadAndPlay() {
let dataStr = window.localStorage.getItem('playData') || '[]'
let data = JSON.parse(dataStr);
data.forEach((item, i) => {
if (item) {
this.playerIdx = i
this.sendDevicePush(item)
}
})
}
}
};
</script>

Loading…
Cancel
Save