My question is, what exactly is the event that triggers this timeout? Is it stream unpublish, or client disconnects, or what is it? Does the DVR clear 15s after the unpublish event?
The reason I'm asking is because I've been running into a weird situation where the timeout would kick in for no apparent reason. Normally 15s before the cache clears (at 23:09:50) I'd see a console output from this method:
public void onUnPublish(IMediaStream stream, String streamName, boolean isRecord, boolean isAppend)
but in this case the nearest output was at 23:07:20, and unrelated.
The amount of time, in milliseconds (ms), that Wowza nDVR will wait for packets until it stops recording. The default value is 300,000 ms (5 minutes). This timeout is meant to account for when encoders disconnect and then restart. The value should be a non-zero value or else your recording will stop whenever there is no data.
So the trigger is essentially zero packets arriving within the StreamTimeout window.