Results 1 to 5 of 5

Thread: Disconnect streams that have not had any connections for some past duration(say 2hrs)

  1. #1
    Join Date
    Feb 2014
    Posts
    12

    Default Disconnect streams that have not had any connections for some past duration(say 2hrs)

    Hi,

    How can a listener be implemented to disconnect all those streams that have not had any connections for some past duration say 2 hrs?

    I am working with live streams from IP Cameras.
    My requirement is to start all streams in content directory on server startup. For that I am using ServerListenerStartupStreamsMonitor.

    Now, firslty, if there are some streams that have not been played for some long time, I want to stop them.

    And, secondly, start them again when play has been requested. Although this can be somewhat achieved using rtp-live stream type (http://www.wowza.com/forums/content....PEG-TS-streams). But the 60 sec idle time is too less time for our requirements.

    Thanks,
    Mayank
    Last edited by sriv.mayank; 03-03-2014 at 12:21 AM.

  2. #2
    Join Date
    Feb 2014
    Posts
    12

    Default

    Hi,

    Is there an alternate way to stop streams without any connections after some timeout value specified?
    Any response in this regard would be helpful.

    Mayank.

  3. #3
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    Mayank,

    In my test with StreamType "rtp-live" it only takes 10 seconds for the Wowza RTPMediaCaster to unpublish a MediaCaster stream after the RTMP playback client disconnects. So you might consider just using StreamType rtp-live if you are supporting RTMP playback clients.

    Richard

  4. #4
    Join Date
    Feb 2014
    Posts
    12

    Default

    Hi Richard,

    So does that mean there is no other way to disconnect streams from IP cameras that no one has been watching for past some time and there will be incoming data feeds from those cameras for like forever?
    We are also supporting iOS devices so using rtp-live as stream type is not a viable solution for us.

    Mayank.

  5. #5
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    Mayank,

    Right, yes, with HTTP clients a live stream has to be started so packetizing can begin and be ready for playback.

    Richard

Similar Threads

  1. Replies: 3
    Last Post: 05-02-2014, 08:48 PM
  2. How to disconnect play streams from publish stream
    By alexitekako in forum General Forum
    Replies: 4
    Last Post: 02-20-2012, 10:40 AM

Posting Permissions

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