Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# NET_SDK_StartVoiceCom_MR

### Interface Definition

C++C#

    1
    2
    3
    4
    5
    6
    POINTERHANDLE NET_SDK_StartVoiceCom_MR(
        LONG lUserID,
        BOOL bNeedNoEncodeData,
        TALK_DATA_CALLBACK fVoiceDataCallBack,
        void* pUser,
        LONG lChannel = -1);

    1
    2
    3
    4
    5
    6
    public static extern POINTERHANDLE NET_SDK_StartVoiceCom_MR(
        int lUserID,
        bool bNeedNoEncodeData,
        TALK_DATA_CALLBACK fVoiceDataCallBack,
        IntPtr pUser,
        int lChannel = -1);

### Function Description

Enable the voice forwarding function.

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
lUserIDin | LONG | User ID, the return value of `NET_SDK_Login` or `NET_SDK_LoginEx`.
bNeedNoEncodeDatain | BOOL | Whether the voice data does not need to be encoded, select TRUE, the stream from the device is directly called back and sent to the device stream SDK for encoding. Select FALSE, the stream from the device is decoded and then called back, and the stream to the device SDK is not encoded.
fVoiceDataCallBackin | `TALK_DATA_CALLBACK` | Voice data callback function.
pUserin | void* | User-defined parameters.
lChannelin | LONG | Channel number, starting from 0. The IPC device parameter is invalid. The default value is -1, indicating the device itself.

### Return Value

- Type：POINTERHANDLE

- Remark：-1 indicates failure, and other values ​​are used as voice forwarding handles.

### Remarks

None

Error Code