Wowza Media Systems home
Wowza Pro is the best alternative to Adobe Flash Media Server. Try it today.
Now Hiring. Join the Wowza team!

Go Back   Wowza Media Server Forums > Wowza Media Server 2 Forums > Help Requests

Reply
 
Thread Tools Display Modes
  #1  
Old 02-08-2010, 03:34 AM
bobalong bobalong is offline
Junior Member
 
Join Date: Feb 2010
Posts: 9
Default Pause/resume not working in Wowza 2

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)
But when I invoke togglePause() to resume the playback I get these events but the video does not play in the window:

Code:
nsPlay: onStatus: NetStream.Unpause.Notify (Unpausing videorecording.)
nsPlay: onStatus: NetStream.Play.Start (Started playing videorecording.)
After that I cannot do anything and have to disconnect and start over.

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.)
Exactly the same code works perfectly in 1.7.x and FMS.

Any ideas would be greatly appreciated.

Thanks

Rob
Reply With Quote
  #2  
Old 02-08-2010, 05:45 AM
rrlanham rrlanham is offline
Senior Member
 
Join Date: Dec 2007
Posts: 9,420
Default

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
Reply With Quote
  #3  
Old 02-08-2010, 07:39 AM
bobalong bobalong is offline
Junior Member
 
Join Date: Feb 2010
Posts: 9
Default

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)
Reply With Quote
  #4  
Old 02-08-2010, 10:02 AM
rrlanham rrlanham is offline
Senior Member
 
Join Date: Dec 2007
Posts: 9,420
Default

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.
Reply With Quote
  #5  
Old 02-08-2010, 02:34 PM
bobalong bobalong is offline
Junior Member
 
Join Date: Feb 2010
Posts: 9
Default

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
Reply With Quote
  #6  
Old 02-08-2010, 02:40 PM
rrlanham rrlanham is offline
Senior Member
 
Join Date: Dec 2007
Posts: 9,420
Default

Yes, send to support@wowzamedia.com

Which ami?

Richard
Reply With Quote
  #7  
Old 02-08-2010, 02:52 PM
bobalong bobalong is offline
Junior Member
 
Join Date: Feb 2010
Posts: 9
Default

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.
Reply With Quote
  #8  
Old 02-08-2010, 03:42 PM
rrlanham rrlanham is offline
Senior Member
 
Join Date: Dec 2007
Posts: 9,420
Default

Email bounced. Use RTMP instead of RTMPT, the http tunnelling protocol, it doesn't work well.

Richard
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:05 PM.


Copyright © 2006 - 2010, Wowza Media Systems
Wowza Media Systems