#include "ltms.h"
C Syntax |
HRESULT IltmsLiveStreamDevConfig_get_IsVideoEncoded(pLiveStreamDevConfig, pVal) |
C++ Syntax |
HRESULT get_IsVideoEncoded(pVal) |
IltmsLiveStreamDevConfig pLiveStreamDevConfig; | pointer to an interface |
VARIANT_BOOL pVal; |
pointer to boolean |
Queries whether the current capture configuration has pre-encoded video.
Parameter |
Description |
pLiveStreamDevConfig |
Pointer to an IltmsLiveStreamDevConfig interface. |
pVal |
Pointer to a boolean variable that indicates whether the video is pre-encoded. VARIANT_BOOL indicates that the video is pre-encoded. Otherwise, the value is VARIANT_FALSE. |
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. |
This is a helper function to determine whether the video will be recompressed or is pre-encoded. It can be used by the application designer to disable output video encoding options if the pre-encoded video is used by the stream.
The function will only return VARIANT_TRUE if IltmsLiveStream::get_UseDeviceEncoding is VARIANT_TRUE and the video device has output-compatible encoding.
You must lock the capture devices with IltmsLiveStreamDevConfig::LockDevices before calling this function.
Required DLLs and Libraries
LTMS For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
Win32, x64.
Elements: |
IltmsLiveStreamDevConfig interface, IltmsLiveStreamDevConfig::LockDevices, IltmsLiveStreamDevConfig::get_IsAudioEncoded, IltmsLiveStream::put_UseDeviceEncoding |
Topics: |
For a C++ example, refer to the Create or Replace Live Stream Example for C++.