Commit b81660536c30777e7d489ba7508c85b12628965d

Authored by xiaoxie
1 parent 6e7cd084

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

Showing 1 changed file with 0 additions and 33 deletions
web_src/src/components/live.vue
... ... @@ -39,30 +39,15 @@ export default {
39 39 },
40 40 data() {
41 41 return {
42   - showVideoDialog: true,
43   - hasAudio: false,
44 42 videoUrl: [''],
45 43 spilt: 1,//分屏
46 44 playerIdx: 0,//激活播放器
47 45  
48   - deviceList: [], //设备列表
49   - currentDevice: {}, //当前操作设备对象
50   -
51   - videoComponentList: [],
52 46 updateLooper: 0, //数据刷新轮训标志
53   - currentDeviceChannelsLenth: 0,
54   - winHeight: window.innerHeight - 200,
55   - currentPage: 1,
56 47 count: 15,
57 48 total: 0,
58   - getDeviceListLoading: false,
59 49  
60 50 //channel
61   - searchSrt: "",
62   - channelType: "",
63   - online: "",
64   - channelTotal: 0,
65   - deviceChannelList: [],
66 51 loading: false
67 52 };
68 53 },
... ... @@ -167,13 +152,6 @@ export default {
167 152 this.sendDevicePush({deviceId, channelId})
168 153 }
169 154 },
170   - convertImageToCanvas(image) {
171   - var canvas = document.createElement("canvas");
172   - canvas.width = image.width;
173   - canvas.height = image.height;
174   - canvas.getContext("2d").drawImage(image, 0, 0);
175   - return canvas;
176   - },
177 155 shot(e) {
178 156 // console.log(e)
179 157 // send({code:'image',data:e})
... ... @@ -211,17 +189,6 @@ export default {
211 189 console.log(data);
212 190 window.localStorage.setItem('playData', JSON.stringify(data))
213 191 },
214   - loadAndPlay() {
215   - let dataStr = window.localStorage.getItem('playData') || '[]'
216   - let data = JSON.parse(dataStr);
217   -
218   - data.forEach((item, i) => {
219   - if (item) {
220   - this.playerIdx = i
221   - this.sendDevicePush(item)
222   - }
223   - })
224   - }
225 192 }
226 193 };
227 194 </script>
... ...