Results 1 to 6 of 6

Thread: ModuleTimedDisconnect Exceptions

  1. #1
    Join Date
    Jun 2014
    Posts
    3

    Default ModuleTimedDisconnect Exceptions

    I'm not exactly sure how to configure prefixes and exemptions to the time out rule. I would like to have the module in place so we don't have viewer chewing up bandwidth for no good reason. However, I would like to play the stream in my retail establishment continuously, with no time out. Is this something that can be done by exempting IP address. We have a static IP.

  2. #2
    Join Date
    May 2013
    Posts
    680

    Default

    It sounds like you'd need to modify the ModuleTimedDisconnect module (source included within the Module Collection) to check for an IP address (your continuous stream playback IP) as an exception. It currently only whitelists by user agent (flash version).

  3. #3
    Join Date
    Jun 2014
    Posts
    3

    Default

    OK so I would just add a value which would be the static IP of the location it will be played >> timedDisconnectAllowedAgents

  4. #4
    Join Date
    May 2013
    Posts
    680

    Default

    I'd suggest adding another function to the source of ModuleTimedDisconnect that checks the IP address against your new property for whitelisted IP's in addition to the user agent check.

  5. #5
    Join Date
    Jun 2014
    Posts
    3

    Default

    IClient client = clients.next();
    					if (client.getTimeRunningSeconds() > disconnectTime)
    					{
    						if (!client.getIp().equals("my-static-ip") && checkAllowedUserAgent(client.getFlashVer()))
    						{
    							if (debugLog)
    								logger.info(MODULE_NAME + ": RTMP disconnecting client " + client.getClientId() + " FlashVer is " + client.getFlashVer(), WMSLoggerIDs.CAT_application, WMSLoggerIDs.EVT_comment);
    
    							client.setShutdownClient(false);
    						}
    					}
    Something like that?

  6. #6
    Join Date
    May 2013
    Posts
    680

    Default

    That could work. You would likely want to add support for http and rtp connections as well in their respective conditionals using httpSession.getIpAddress() and rtpSession.getIp(). You will also want to put back the test for 127.0.0.1 originally in the code.

Similar Threads

  1. Implementig ModuleTimedDisconnect
    By gemfilm in forum Wowza Streaming Engine functionality
    Replies: 1
    Last Post: 06-04-2014, 02:49 PM
  2. IMediaCasterNotify2 - Exceptions
    By pidboretskyy in forum General Forum
    Replies: 1
    Last Post: 12-16-2013, 11:35 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
  •