try it!
$ npm install
$ npm start
post("getSupportedShootMode");
post("getShootMode")
.then(post("setShootMode","still"))
.then(post("actTakePicture"))
.then((res) => {
console.log(res.data.result);
})
.then(post("getEvent", true, "1.1"))
.catch((err)=> {
console.error(err);
});
post("setShootMode", "movie")
.then(post("startMovieRec"))
.then(post("getEvent", true))
.then(wait(5000))
.then(post("stopMovieRec"))
.catch((err)=> {
console.error(err);
});