Wowza Community

Detecting stop of rtmp stream from wowza

Hi, everyone:

Can anyone tell me how to best detect an end (or stop) of an rtmp stream so I can trigger an action in my flowplayer code to do something like refresh the player once the rtmp stream stops (as a result of turning off my encoder)?

Thanks,

Search for the NetStream “onPlayStatus” handler which listens for “NetStream.Play.Complete” notification. You can add your code there.

Richard

First thanks for the great work on RTMP streaming server. …

But I want to know is it possible to strem over RTMP live feeds from IP cameras? … Wowza server can, but it is not free and very heavy. :):):slight_smile:


testking 640-460 For Help testking 1z0-052 For Suppoer testking 642-415 For Info testking 1Y0-A08

What can do it. The tutorial is here:

https://www.wowza.com/docs/how-to-re-stream-video-from-an-ip-camera-rtsp-rtp-re-streaming

What do you mean that Wowza is heavy?

Charlie

On 2nd thought, that might not help. Take a look at the Wowza LiveStreamingVideo example. Find the updateStreamValues function and note how NetStream.currentFPS is monitored. This might be a better way to take action in this case:

private function updateStreamValues():void
		{
			var newVal:String = "";
			if (nsPlay != null)
				newVal = (Math.round(nsPlay.currentFPS*1000)/1000)+" fps/"+(Math.round(nsPlay.bufferLength*1000)/1000)+" secs";
			fpsText.text = newVal;
		}

Richard

Using Flash CS3 or CS4, can see it in this file:

[wowza-install]/LiveVideoStreaming/client/live.fla

You can see it in the Flex version too:

[wowza-install]/LiveVideoStreaming/clientFlex/src/Player.as

Richard

I’m not able to work on that right now. If I had something I would give it to you. But it shouldn’t be too hard. Look at how it is being done in the the Wowza example and look at the RTMP code in Flowplayer for a way to work in something similar.

Richard

Richard:

I’m in the LiveVideoStreaming example folder, but I can’t locate what you’re referring to. Could you please tell me what file to look at and in what folder?

Thanks,

Richard:

Would you be able to provide me some code to drop in my flowplayer to do this if I offered to compensate you?