ILMNetDmx::put_AutoLiveTolerance

Summary

Sets the AutoLive tolerance used to play the incoming stream.

Syntax

#include "ILMNetDmx2.h"

Language Syntax
C HRESULT ILMNetDmx_put_AutoLiveTolerance(pNetDmx, AutoLiveTolerance)
C++ HRESULT put_AutoLiveTolerance(AutoLiveTolerance)

Parameters

ILMNetDmx *pNetDmx

Pointer to an ILMNetDmx interface.

double AutoLiveTolerance

Set to 0 (default) to indicate that the demux should always try to display live video stream. This will cause video playback to be jerky on jittery networks.

Set to > 0 to instruct the demux to favor smooth playback over live video. In this case, the video might fall a little behind if network packets arrive late.

Returns

Value Meaning
S_OK The function was successful.
<> S_OK An error occurred. Refer to the Error Codes or the HRESULT error codes in the DirectShow documentation.

Comments

Right now, all values > 0 for AutoLiveTolerance instruct the network demux to prefer smooth video over live video. Future versions of the demultiplexer will use this value to fine-tune the video playback latency.

The default is 0, which will force the network demux to favor live video. This can cause jerky playback on jittery networks with high latencies. VPNs and wireless networks are examples of jittery networks.

These jittery networks have occasional bottlenecks, which cause some packets to arrive with significant delays (could be several seconds). For these networks, the default behavior of choosing live video will cause the playback to freeze and then speed up when the interruptions occur, causing multiple packets to arrive at the same time. If this effect becomes undesirable, you can set the AutoLiveTolerance to a value greater than 0 (for example, set it to 3) to allow the demux to smooth the playback. You should keep in mind, however, that once you favor smooth playback, the playback stream will start to drift behind the live stream. So there might be a delay of several seconds between what you see and what is captured at the other end.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Multimedia C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.