v4l2camera-ui 0.0.0 → 0.1.4-3-g2a65b62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/App.vue +1 -1
- package/src/components/Format.vue +8 -8
- package/src/components/Video.vue +2 -2
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -93,11 +93,11 @@ import config from '../config.js';
|
|
|
93
93
|
|
|
94
94
|
export default {
|
|
95
95
|
mounted() {
|
|
96
|
-
axios(
|
|
96
|
+
axios.get(config.serviceurl + "/api/formats").then(
|
|
97
97
|
(response) => {
|
|
98
98
|
this.formats = response.data;
|
|
99
99
|
|
|
100
|
-
axios(
|
|
100
|
+
axios.get(config.serviceurl + "/api/format").then(
|
|
101
101
|
(response) => {
|
|
102
102
|
this.format = response.data;
|
|
103
103
|
this.updateFormatFields();
|
|
@@ -123,11 +123,11 @@ export default {
|
|
|
123
123
|
);
|
|
124
124
|
},
|
|
125
125
|
updateGeometry() {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
126
|
+
console.log(this.geometry)
|
|
127
|
+
const sizes = this.geometry.split('x');
|
|
128
|
+
this.format.width = parseInt(sizes[0]);
|
|
129
|
+
this.format.height = parseInt(sizes[1]);
|
|
130
|
+
this.updateValue(this.format);
|
|
131
131
|
},
|
|
132
132
|
updateFormatFields() {
|
|
133
133
|
this.geometry = `${this.format.width}x${this.format.height}`;
|
|
@@ -141,7 +141,7 @@ export default {
|
|
|
141
141
|
return formats.sort((a,b) => a.width*a.height - b.width*b.height).map(item => `${item.width}x${item.height}`);
|
|
142
142
|
},
|
|
143
143
|
getFps(formats) {
|
|
144
|
-
|
|
144
|
+
return formats.filter((fmt) => fmt.width + 'x' + fmt.height == this.geometry)[0].intervals.map(f => f.fps);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
};
|
package/src/components/Video.vue
CHANGED
|
@@ -37,10 +37,10 @@ export default {
|
|
|
37
37
|
};
|
|
38
38
|
},
|
|
39
39
|
mounted() {
|
|
40
|
-
axios(
|
|
40
|
+
axios.get(config.serviceurl + "/api/rtspinfo").then(
|
|
41
41
|
(response) => this.rtspinfo = response.data
|
|
42
42
|
);
|
|
43
|
-
axios(
|
|
43
|
+
axios.get(config.serviceurl + "/api/isCapturing").then(
|
|
44
44
|
(response) => this.visibility = response.data
|
|
45
45
|
);
|
|
46
46
|
},
|