robertdoo / red5

Automatically exported from code.google.com/p/red5
0 stars 0 forks source link

1.0.1 Records for only a few seconds #390

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create new netStream
2. Attach mic and cam
3. ns.publish(rtmpSession,"record");
4. Stop the recording
5. nsp = new NetStream(nc);
6. nsp.play(rtmpSession);

What is the expected output? What do you see instead?
Expect to playback audio and video for duration of the recording.  Instead I 
only see the video and hear audio for a few seconds.

What version of the product are you using? On what operating system?
Red5 1.0.1 downloaded on 4/25/13 to a Windows 2008 server.

Please provide any additional information below.
When checking the .flv on the server, it is not the full recording.  So, it's 
the recording side that's a problem, not the playback.

I replaced 1.0.1 with 1.0 RC1 and it worked fine.

Original issue reported on code.google.com by veloce...@gmail.com on 1 May 2013 at 2:48

GoogleCodeExporter commented 9 years ago
Thought some code might help.
[code]
ns = new NetStream(nc);
ns.addEventListener(NetStatusEvent.NET_STATUS,recordingStatus);
ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR,asyncErrorHandler);
ns.addEventListener(IOErrorEvent.IO_ERROR,IOErrorHandler);

cam = Camera.getCamera();
cam.setMode(320,240,15,false);
cam.setQuality(0,90);
ns.attachCamera(cam);

mic = Microphone.getMicrophone();
mic.rate = 11;
mic.setSilenceLevel(5);
mic.setUseEchoSuppression(true);
ns.attachAudio(mic);

[/code]

And output:
onBWDone
NetConnection.Connect.Success
onBWDone
recordingStatus:NetStream.Publish.Start
recordingStatus:NetStream.Record.Start
activityHandler: [ActivityEvent type="activity" bubbles=false cancelable=false 
eventPhase=2 activating=true]
recordingStatus:NetStream.Record.Stop
recordingStatus:NetStream.Unpublish.Success

Original comment by veloce...@gmail.com on 1 May 2013 at 3:02

GoogleCodeExporter commented 9 years ago

Original comment by mondain on 1 May 2013 at 6:56

GoogleCodeExporter commented 9 years ago
This is fixed starting with version 1.0.2. 

Original comment by mondain on 24 May 2013 at 4:24