Set up access times for streams per application

This module will allow you to specify times or date/time combinations that will define when streams that use a specific application are allowed to be viewed. You can specify multiple date ranges or just times that will be used daily.

Example (In Properties within Application.xml):

<Property>
<Name>twgPlayDateTimeFormat</Name>
<Value>HH:mm:ss</Value>
</Property>
<Property>
<Name>twgPlayDateTimes</Name>
<Value>8:00:10 | 9:27:00,9:31:10 | 10:01:00</Value>
</Property>

The above would check between 8am – 9:27am and 9:31:10 – 10:01:00 each day and if the time fell within it you could playback. Otherwise stream would be rejected and any existing connections are dropped.

Example 2:

<Property>
<Name>twgPlayDateTimeFormat</Name>
<Value>MM/dd/yyyy HH:mm:ss</Value>
</Property>
<Property>
<Name>twgPlayDateTimes</Name>
<Value>10/08/2015 8:00:10 | 10/08/2015 9:00:00,10/08/2015 9:31:00 | 10/15/2015 10:01:00</Value>
</Property>

 The above would allow playback on the 8th of October from 8 until 9am and then from the 8th to the 15th would allow access between 9:31 – 10:01am.  For further date/time format examples, you can refer to the JavaDoc here.

Attached is the jar file and the source.

Source Files


Comments are closed.