Results 1 to 9 of 9

Thread: Detecting stop of rtmp stream from wowza

  1. #1
    Join Date
    Mar 2010
    Posts
    6

    Default 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,

  2. #2
    Join Date
    Dec 2007
    Posts
    25,883

    Default

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

    Richard

  3. #3
    Join Date
    Dec 2007
    Posts
    25,883

    Default

    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:

    Code:
    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

  4. #4
    Join Date
    Mar 2010
    Posts
    6

    Default Looking now, but

    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,

  5. #5
    Join Date
    Dec 2007
    Posts
    25,883

    Default

    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

  6. #6
    Join Date
    Mar 2010
    Posts
    6

    Default Could you please provide some code?

    Richard:

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

  7. #7
    Join Date
    Dec 2007
    Posts
    25,883

    Default

    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

  8. #8
    Join Date
    Apr 2010
    Posts
    1

    Default

    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.
    ---------------------------
    testking 640-460 For Help testking 1z0-052 For Suppoer testking 642-415 For Info testking 1Y0-A08
    Last edited by bradsmokes; 11-05-2010 at 03:38 AM.

  9. #9

    Default

    What can do it. The tutorial is here:

    http://www.wowzamedia.com/forums/showthread.php?t=6470

    What do you mean that Wowza is heavy?

    Charlie

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •