Disconnect connected clients after a specified time period with a Wowza Streaming Engine Java module

The ModuleTimedDisconnect module for Wowza Streaming Engine™ media server software can be used to disconnect players from an application after a specified time has expired.

Note: Wowza Streaming Engine 4.0.0 or later is required.

Contents


Installation
Configuration
Properties
Usage
For developers

Installation


  1. Download wse-plugin-timeddisconnect.zip.
     
  2. Extract the contents from the downloaded (zipped) package, and then copy the lib/wse-plugin-timeddisconnect.jar file from the package to the lib folder in your Wowza Streaming Engine installation ([install-dir]/lib).
     
  3. Restart Wowza Streaming Engine.

Configuration


To enable this module, add the following module definition to your application configuration. See Configure modules for details.

Name
Description
Fully Qualified Class Name
ModuleTimedDisconnect Disconnects players at a specified time interval. com.wowza.wms.plugin.ModuleTimedDisconnect

Properties


After enabling the module, you can adjust the default settings by adding the following properties to your application. See Configure properties for details.

Path
Name
Type
Value
Notes
/Root/Application timedDisconnectTime Integer 60 The time, in seconds, that players are allowed to be connected. Players that connect for this duration are then disconnected and must reconnect. (default: 60)
/Root/Application timedDisconnectAllowedAgents String FM,Wirecast A comma-separated list of User Agent prefixes that's checked when the connection is made. If a player's User Agent starts with one of the values in this list, it won't be controlled by the disconnect timer. This condition allows your encoders to remain connected. (default: not set)
/Root/Application timedDisconnectDebugLog Boolean true Enables or disables extra logging. (default: false)

Usage


Use the timedDisconnectTime property value to specify how much time elapses before connected clients are disconnected from Wowza Streaming Engine applications.

For developers


  • Get the source code on GitHub