Beispiel #1
0
        /// <summary>
        /// 关闭音频通道
        /// </summary>
        /// <returns></returns>
        public bool CloseSound()
        {
            int ret = NETDVR_closeAudioReciever(d.nHandle, (byte)(CurrentCameraInfo.Channel - 1));

            ret        = NETDVR_stopAudioSend(d.nHandle, (byte)(CurrentCameraInfo.Channel - 1));
            SoundState = Enum_VideoPlaySoundState.SoundColse;
            return(true);
        }
        /// <summary>
        /// 关闭声音通道
        /// </summary>
        /// <returns></returns>
        public bool CloseSound()
        {
            bool bolResult = false;

            //统一通过  HikColoseCoundEvent 置为音频关闭状态
            HikCloseSound(this, null);
            SoundState = Enum_VideoPlaySoundState.SoundColse;
            bolResult  = true;
            return(bolResult);
        }
        /// <summary>
        /// 关闭音频通道
        /// </summary>
        /// <returns></returns>
        public bool CloseSound()
        {
            bool bolResult = false;

            if (SDK_EzvizSDK.OpenSDK_CloseSound(intptrSessionID) == 0)
            {
                SoundState = Enum_VideoPlaySoundState.SoundColse;
                bolResult  = true;
            }
            return(bolResult);
        }
        /// <summary>
        /// 打开音频通道_独占
        /// </summary>
        /// <returns></returns>
        public bool OpenSound()
        {
            bool bolResult = false;

            //手动关闭,确认只有一个通道有声音
            SDK_DaHua.DHCloseSound(this, null);
            if (SDK_DaHua.CLIENT_OpenSound(intPlayID))
            {
                SoundState = Enum_VideoPlaySoundState.SoundOpen;
                bolResult  = true;
            }
            return(bolResult);
        }
        /// <summary>
        /// 打开音频通道_独占
        /// </summary>
        /// <returns></returns>
        public bool OpenSound()
        {
            bool bolResult = false;

            //实际测试,打开声音通道程序并不会关闭之前的声音通道,手动关闭,确认仅有一个通在播放
            SDK_ZLNetSDK.ZLCloseSound(this, null);
            if (SDK_ZLNetSDK.ZLNET_OpenSound(m_nPlayHandle))
            {
                SoundState = Enum_VideoPlaySoundState.SoundOpen;
                bolResult  = true;
            }
            return(bolResult);
        }
        /// <summary>
        /// 打开声音通道
        /// </summary>
        /// <returns></returns>
        public bool OpenSound()
        {
            bool bolResult = false;

            //手动关闭,确认只有一个声音在播放
            HikCloseSound(this, null);
            if (NET_DVR_OpenSound(intRet))
            {
                SoundState = Enum_VideoPlaySoundState.SoundOpen;
                bolResult  = true;
            }
            return(bolResult);
        }
Beispiel #7
0
        /// <summary>
        /// 打开音频通道
        /// </summary>
        /// <returns></returns>
        public bool OpenSound()
        {
            TLPlay_PlaySound(m_hPlayPort);
            Byte chn = (byte)(CurrentCameraInfo.Channel - 1);
            int  ret = NETDVR_mutePreViewAudio(d.nHandle, chn, true);

            aduiocallback = new pFrameCallBack(aduiocallback1);
            ret           = NETDVR_openAudioReciever(d.nHandle, chn, aduiocallback, 1);
            if ((int)NETDVR_RETURN_CODE.NETDVR_SUCCESS != ret)
            {
                return(false);
            }
            ret = NETDVR_startAudioSend(d.nHandle, chn);
            if ((int)NETDVR_RETURN_CODE.NETDVR_SUCCESS != ret)
            {
                return(false);
            }
            SoundState = Enum_VideoPlaySoundState.SoundOpen;
            return(true);
        }