We've created a webcam recording application with AS3 that uses a Wowza Amazon instance. From time to time we experience some problems regarding playback of the recorded stream. It does not happen that often, so it's kinda hard to point exactly what's causing the issue, but it happens and is of course not acceptable application wise.
The recording flow:
1. User allows camera and microphone
2. A connection to the Wowza server is created
3. User starts recording and publish is triggered on the record stream with type "record"
4. User ends recording. Application waits for the buffer to clear on the net stream object before loading the stream.
5. Playback of the recorded stream is triggered on a different net stream object but with the same connection as the recorder stream. This is where the strange things start to happen:
I've recorded a video for let's say 40 seconds and I get the metadata back that the video has a duration of 1400 seconds(!). From here nothing happens since the stream somehow seem to be broken(?), however, if I seek to 1360 seconds the recorded stream starts playing. How is this even possible? Where did all that other "empty" seconds come from? Can it have something to do with the time from when the connection was established to when I actually start the publishing?
Since I don't know exactly how this occur it makes it very hard to debug. So I'm trying my luck here - maybe somebody else experienced the same thing or could help me shed some light on this?
size: 640x480 (I know it's not optimal)
Thanks in advance!