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