MAX_STREAM_TIME
Description
Get or Set the maximum video/audio streaming duration in second for PREVIEW.
The encoder could limited the maximum streaming time for all video/audio connection to the host. If the maximum streaming time is set, all hosts could get the video/audio stream in the specific time. As the streaming time is expired, the encoder will close the host's connections of video/audio.
The control session is independent from this settings. That means the encoder will NOT closed a host control session when the host's video/audio stream was closed due to expiration of the maximum streaming time.
If the video/audio stream was triggered by events, the streaming time was not limited by this setting. The encoder will follow the event settings to handle the streaming time.
If the CHANNEL=n was not set with this URL to the Multi-Channel device, this command is read-only command and the CHANNEL 1 video server's MAX_STREAM_TIME configuration will be returned. If the CHANNEL 1 video server does not connect to the router, the error message will be returned.
Input Argument
0~86400: 0: no time limitation for streaming (default), 1~86400: maximum streaming time in second
Attribute
Return of Message
MAX_STREAM_TIME='0'
OK:MAX_STREAM_TIME='3600'
or
ERROR: MAX_STREAM_TIME='0'
Applicability
Status
Valid
See Also
None
Example
http://ip:port/cgi-bin/encoder?USER=Admin&PWD=123456&MAX_STREAM_TIME
or
http://ip:port/cgi-bin/cmd/encoder?MAX_STREAM_TIME
http://ip:port/cgi-bin/encoder?USER=Admin&PWD=123456&MAX_STREAM_TIME=80
or
http://ip:port/cgi-bin/cmd/encoder?MAX_STREAM_TIME=80
Back to