CgwMonitorManage.Common.RtpAdapter.ESDK_RTP_SetIsNeedAudioFrame C# (CSharp) Method

ESDK_RTP_SetIsNeedAudioFrame() public method

设置音频数据
public ESDK_RTP_SetIsNeedAudioFrame ( bool bIsNeedAudioFrame, uint uiChannel ) : void
bIsNeedAudioFrame bool
uiChannel uint
return void
        public void ESDK_RTP_SetIsNeedAudioFrame(bool bIsNeedAudioFrame, uint uiChannel)
        {
            NLogEx.LoggerEx logEx = new NLogEx.LoggerEx(log);
            logEx.Trace("Enter: RtpAdapter.ESDK_RTP_SetIsNeedAudioFrame().");

            try
            {
                int iRet = SdkRtpInterface.ESDK_RTP_SetIsNeedAudioFrame(bIsNeedAudioFrame, uiChannel);

                if (iRet != 0)
                {
                    logEx.Error("RtpAdapter.ESDK_RTP_SetIsNeedAudioFrame ,error:{0}", iRet);
                }
            }
            catch (System.Exception ex)
            {
                logEx.Error("RtpAdapter.ESDK_RTP_SetIsNeedAudioFrame ,Exception:{0}", ex.ToString());
            }
        }