Upgraded stream to API v2
This commit is contained in:
parent
f92d9de3dd
commit
495220cabb
1 changed files with 9 additions and 3 deletions
|
|
@ -56,13 +56,19 @@ export default {
|
|||
);
|
||||
},
|
||||
streamImgUri: function() {
|
||||
return this.$store.getters.uri + "/stream";
|
||||
return `http://${this.$store.state.host}:${
|
||||
this.$store.state.port
|
||||
}/api/v2/streams/mjpeg`;
|
||||
},
|
||||
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() {
|
||||
return this.$store.getters.uri + "/camera/preview/stop";
|
||||
return `http://${this.$store.state.host}:${
|
||||
this.$store.state.port
|
||||
}/api/v2/actions/camera/preview/stop`;
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue