Ticket #701 (new Bug)
Opened 2 years ago
Reusing a NetConnection causes recording errors
| Reported by: | fedhat | Owned by: | mondain |
|---|---|---|---|
| Priority: | Major | Component: | App Server |
| Version: | 0.9.0 RC1 | Keywords: | NetConnection corrupt audio recording |
| Cc: | fed@… |
Description
After upgrading to 0.9 (RC1, RC2 and Final) we noticed that all of our audio recordings were corrupt and not playing back correctly. For example, a 20 second recording would report that it was 3 minutes long, with most of that being silence. With subsequent recordings, the problem got worse.
Using a very simple testing application, we discovered that reusing the NetConnection for the recordings was causing the problems. In previous versions of red5 (we started w/ 0.7) we were able to reuse the same NetConnection to record audio (with new NetStreams for each recording) and had no issues.
We worked around the recording issues by creating a new NetConnection for every recording, but would rather not have to do that and avoid the overhead.
This is not an issue with audio playback--we can use the same NetConnection to play as many streams as we need.
