![]() |
|
#1
|
|||
|
|||
|
Hi there
I've been testing a Wowza 2 setup and I'm experiencing problems pausing and resuming the playback of a recorded stream. I'm using an Amazon EC2 Wowza server with a slightly modified version of the video recording app that includes a pause/resume button. When the recorded video is paused with: nsPlay.togglePause() I receive the following netstream events: Code:
nsPlay: onStatus: NetStream.Pause.Notify (Pausing videorecording.) nsPlay: onStatus: NetStream.Buffer.Flush (undefined) Code:
nsPlay: onStatus: NetStream.Unpause.Notify (Unpausing videorecording.) nsPlay: onStatus: NetStream.Play.Start (Started playing videorecording.) Here is the full trace of the session: Code:
nc: NetConnection.Connect.Success (Connection succeeded.) nsPublish: NetStream.Publish.Start (Publishing videorecording.) nsPublish: NetStream.Record.Start (Recording videorecording.) nsPublish: NetStream.Buffer.Empty (undefined) nsPublish: NetStream.Buffer.Empty (undefined) nsPublish: NetStream.Buffer.Empty (undefined) nsPublish: NetStream.Buffer.Empty (undefined) nsPublish: NetStream.Buffer.Empty (undefined) nsPublish: NetStream.Buffer.Empty (undefined) nsPublish: NetStream.Buffer.Empty (undefined) nsPublish: NetStream.Buffer.Empty (undefined) nsPublish: NetStream.Record.Stop (Stopped recording videorecording.) nsPublish: NetStream.Unpublish.Success (videorecording is now unpublished.) doPlayStart nsPlay: onStatus: NetStream.Play.Reset (Playing and resetting videorecording.) nsPlay: onStatus: NetStream.Play.Start (Started playing videorecording.) onMetaData creationdate = Mon Feb 8 06:30:48 duration = 8.163 description = Recorded using VideoRecording example. nsPlay: onStatus: NetStream.Buffer.Full (undefined) nsPlay: onStatus: NetStream.Pause.Notify (Pausing videorecording.) nsPlay: onStatus: NetStream.Buffer.Flush (undefined) nsPlay: onStatus: NetStream.Unpause.Notify (Unpausing videorecording.) nsPlay: onStatus: NetStream.Play.Start (Started playing videorecording.) Any ideas would be greatly appreciated. Thanks Rob |
|
#2
|
|||
|
|||
|
Try using the VideoRecording example to record the video, But then use the SimpleVideoStreaming example to play the recording. Try pause/unpause in this player.
Richard |
|
#3
|
|||
|
|||
|
No good. Same problem here.
Here's the full trace from my session: Code:
testVersion: MAC 9,0,45,0>=9,0,115,0: false testVersion: MAC 9,0,45,0>=9,0,28,0: true testVersion: MAC 9,0,45,0>=9,0,60,0: false nc.onStatus: NetConnection.Connect.Success (Connection succeeded.) onStatus: description = Playing and resetting videorecording.flv. level = status code = NetStream.Play.Reset clientid = 1675420769 onStatus: description = Started playing videorecording.flv. isFastPlay = false level = status code = NetStream.Play.Start clientid = 1675420769 onMetaData creationdate = Mon Feb 8 10:36:16 duration = 12.867 description = Recorded using VideoRecording example. updateVideoSize: null onStatus: level = status code = NetStream.Buffer.Full updateVideoSize: null updateVideoSize: null updateVideoSize: null onStatus: description = Pausing videorecording.flv. level = status details = videorecording.flv code = NetStream.Pause.Notify clientid = 1675420769 updateVideoSize: null onStatus: level = status code = NetStream.Buffer.Flush updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null doPlay updateVideoSize: null onStatus: description = Unpausing videorecording.flv. level = status details = videorecording.flv code = NetStream.Unpause.Notify clientid = 1675420769 onStatus: description = Started playing videorecording.flv. isFastPlay = false level = status code = NetStream.Play.Start clientid = 1675420769 updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null doPlay updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null nc.onStatus: NetConnection.Connect.Closed (undefined) nc.onStatus: NetConnection.Connect.Success (Connection succeeded.) onStatus: description = Playing and resetting videorecording.flv. level = status code = NetStream.Play.Reset clientid = 420949234 onStatus: description = Started playing videorecording.flv. isFastPlay = false level = status code = NetStream.Play.Start clientid = 420949234 onMetaData creationdate = Mon Feb 8 10:36:16 duration = 12.867 description = Recorded using VideoRecording example. updateVideoSize: null onStatus: level = status code = NetStream.Buffer.Full updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null onStatus: description = Pausing videorecording.flv. level = status details = videorecording.flv code = NetStream.Pause.Notify clientid = 420949234 updateVideoSize: null onStatus: level = status code = NetStream.Buffer.Flush updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null doPlay updateVideoSize: null onStatus: description = Unpausing videorecording.flv. level = status details = videorecording.flv code = NetStream.Unpause.Notify clientid = 420949234 onStatus: description = Started playing videorecording.flv. isFastPlay = false level = status code = NetStream.Play.Start clientid = 420949234 updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null updateVideoSize: null nc.onStatus: NetConnection.Connect.Closed (undefined) |
|
#4
|
|||
|
|||
|
I tested with VideoRecording and SimpleVideoStreaming example, works perfectly here.
Make sure that you are following the method in the VideoRecording for stopping the recording. If you don't properly wait for the buffer to empty, it will not be a good recording. And make sure you are not trying to play while you are recording, unless you use "live-record" StreamType in Application.xml. Richard Last edited by rrlanham; 02-08-2010 at 02:38 PM. |
|
#5
|
|||
|
|||
|
I'm not doing anything wrong while making the recording. I'm using an Amazon EC2 Wowza server and the sample code out of the box.
Can I email you details of the EC2 server I'm testing with for you to check? Thanks |
|
#6
|
|||
|
|||
|
|
|
#7
|
|||
|
|||
|
Emailed you the details.
Not sure which type of image it is. Probably Linux/Redhat but I'd have to check this in the morning. Thanks again. |
|
#8
|
|||
|
|||
|
Email bounced. Use RTMP instead of RTMPT, the http tunnelling protocol, it doesn't work well.
Richard |
![]() |
| Thread Tools | |
| Display Modes | |
|
|