platypush/platypush/backend/http/static/js/plugins/camera.pi/index.js

20 lines
357 B
JavaScript
Raw Normal View History

Vue.component('camera-pi', {
template: '#tmpl-camera-pi',
2020-09-27 02:52:20 +02:00
mixins: [cameraMixin],
methods: {
startStreaming: function() {
2020-09-27 02:52:20 +02:00
this._startStreaming('pi');
},
capture: function() {
2020-09-27 02:52:20 +02:00
this._capture('pi');
},
},
mounted: function() {
2020-09-27 02:52:20 +02:00
this.attrs.resolution = [640, 480];
}
});