Upgraded stream to API v2

This commit is contained in:
Joel Collins 2019-11-22 13:48:51 +00:00
parent f92d9de3dd
commit 495220cabb

View file

@ -56,13 +56,19 @@ export default {
); );
}, },
streamImgUri: function() { streamImgUri: function() {
return this.$store.getters.uri + "/stream"; return `http://${this.$store.state.host}:${
this.$store.state.port
}/api/v2/streams/mjpeg`;
}, },
startPreviewUri: function() { startPreviewUri: function() {
return this.$store.getters.uri + "/camera/preview/start"; return `http://${this.$store.state.host}:${
this.$store.state.port
}/api/v2/actions/camera/preview/start`;
}, },
stopPreviewUri: function() { stopPreviewUri: function() {
return this.$store.getters.uri + "/camera/preview/stop"; return `http://${this.$store.state.host}:${
this.$store.state.port
}/api/v2/actions/camera/preview/stop`;
} }
}, },