Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 684 Bytes

File metadata and controls

38 lines (32 loc) · 684 Bytes

SonyCameraController

try it!

$ npm install
$ npm start 

API

post(method<String>, params<String?>, version<String?>) => <Promise>
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);
});
wait(time<String?>) => <Promise>
post("setShootMode", "movie")
.then(post("startMovieRec"))
.then(post("getEvent", true))
.then(wait(5000))
.then(post("stopMovieRec"))
.catch((err)=> {
  console.error(err);
});