Answered
Time-lapse video
I'm trying to to capture time-lapse images. I'd like to
capture a new image each second. Each image should appear for a
fraction of a second (e.g.1/10 sec.), so after 10 seconds I'd have
a recording lasting 1 second that displays 10 separate images.
However, the result of the code below is to capture a single image
and to hold that image in place for a full second. After 10
seconds, I have a 10 second video containing 10 different images.
What am I doing wrong?
flashcom = "rtmp:/simon";
myCamera = Camera.get();
pipeline = new NetConnection();
pipeline.onStatus = function() {
myInterval = setInterval(playIt, 1000);
myStream = new NetStream(pipeline);
myStream.publish("test","append");
function playIt() {
myStream.attachVideo(myCamera,0);
}
};
pipeline.connect(flashcom);
flashcom = "rtmp:/simon";
myCamera = Camera.get();
pipeline = new NetConnection();
pipeline.onStatus = function() {
myInterval = setInterval(playIt, 1000);
myStream = new NetStream(pipeline);
myStream.publish("test","append");
function playIt() {
myStream.attachVideo(myCamera,0);
}
};
pipeline.connect(flashcom);
