NetStream, Live streaming and Wowza
I try to publish live stream using Publisher API and it works just fine.
So I wanna add pause/resume support for this live stream - and when the user hit pause call pause for NetStream object, handle it on Wowza side and don`t publish frames until user hits pause button again (resume) and then continue publishing frames.
When I call resume() for NetStream object I handle it on Wowza side by continuing stream publishing but player then don`t display any video data.
My approach was to create new NetConnection and NetStream object every time I want to resume the stream (and this is work) but it is not so correctly for my project and so I want ask you - is there any way to handle properly pause() and resume() for NetStream object without recreating it ever time i want to resume playback().
Last edited by Viktor; 11-24-2010 at 07:37 AM.
NetStream.pause is not supported for live stream at present. I don't think Publisher API makes any difference to the NetStream limitation.
I think you mean NetStream don't handle pause correctly for live stream? Because I hit pause on flash player side and this event handles by IMediaStreamActionNotify2 pause() Then I continue publishing frames frozen at time I hited pause. When resume is pushed I continue publishing "normal" frames and I think this is very similar to live stream behaviour. But why resume for NetStream don`t hanldles correctly and player dont display received frames this is mystery for me.((
Last edited by Viktor; 11-24-2010 at 09:49 AM.
Is this still the case with WMS 2.2.4 patch 7? I can pause a live stream, but can't seem to get NetStream.resume() to work with this release of WMS.
There is no pause for a live stream in Wowza Server 2.x. In Wowza Server 3 we added a network DVR which support pausing a live stream.
Thanks for the update, Charlie. Will this change with future releases? I don't need DVR capabilities, but Adobe's OSMF class NetStreamPlayTrait uses NetStream.resume() and NetStream.pause() with playback control on "regular" live streams. NetStream.pause() works with WMS 2.x, but not NetStream.resume(). I've updated my own build of OSMF to workaround this, but it would be nice to have a list of compatible NetStream API's with Wowza Server by version/release and "add-on". #musthave #wishlist
No, this will not change. The best thing for live streaming is to remove the pause button or use nDVR. Those are the two options.
Any update on this? I checked and nDVR will not help as this is only for http and not for rtmp. My issue is that I'm trying to play 2 live vide streams in one player and I need them synchronized (camera+slides). So I wanted to pause first stream until the second starts to play and then resume the first one.
Originally Posted by charlie
Are there any plans to add support for nDVR for rtmp as well?
Actually Wowza nDVR only works with HTTP stream types.