Copy link to clipboard
Copied
Using AMS 5 to record multiple videos from a web cam. It _mostly_ works but odd things are happening. Specifically, every so often I get a 2 - 5 second pause at the start of the recording. IE it's just a freeze frame, with no audio. I am recording five videos. Sometimes all five are fine. Sometimes every other one has this pause. Sometimes just one of the five has a pause... ie there seems to be no rhyme or reason.
I start the recording with this:
vidStream.attachCamera(cam);
vidStream.attachAudio(mic);
vidStream.publish("user" + questionNumber.toString(), "record");
and then I have a timer that will stop the video like so:
vidStream.attachCamera(null);
vidStream.attachAudio(null);
Have tried vidStream.close() with same result.
That's all it is... Any thoughts as to why this is happening. Pretty soon I'm going to abandon AMS and use the FlashyWrappers AIR encoder as all I need is client side encoding. I've just use FMS4.5 in the past for this same kind of thing, and decided to upgrade to AMS5 for this project. So far not going to well. I guess I could go back to 4.5 and see if that fixes it...