Пример #1
0
        public void DeInitialize()
        {
            if (!m_bIsInitialized)
            {
                return;
            }

            if (GroupSDK.MAG_IsProcessingImage(m_intChannelIndex))
            {
                GroupSDK.MAG_StopProcessImage(m_intChannelIndex);
            }

            if (GroupSDK.MAG_IsListening(m_intChannelIndex))
            {
                GroupSDK.MAG_StopListen(m_intChannelIndex);
            }

            if (GroupSDK.MAG_IsLinked(m_intChannelIndex))
            {
                DisLinkCamera();//include stop sd storage
            }

            if (GroupSDK.MAG_IsInitialized(m_intChannelIndex))
            {
                GroupSDK.MAG_Free(m_intChannelIndex);
            }

            if (GroupSDK.MAG_IsChannelAvailable(m_intChannelIndex))
            {
                GroupSDK.MAG_DelChannel(m_intChannelIndex);
            }
        }
Пример #2
0
        public void DeInitialize()
        {
            if (!m_bIsIntialized)
            {
                return;
            }

            if (GroupSDK.MAG_IsDHCPServerRunning())
            {
                GroupSDK.MAG_StopDHCPServer();
            }

            if (GroupSDK.MAG_IsInitialized(0))
            {
                GroupSDK.MAG_Free(0);
            }

            if (GroupSDK.MAG_IsChannelAvailable(0))
            {
                GroupSDK.MAG_DelChannel(0);
            }

            m_bIsIntialized = false;
        }