Esempio n. 1
0
        private void setupRtcEngine()
        {
            m_engine = new AgoraRtcEngineControl();
            m_engine.initialize("Specify Your APP ID here");

            m_engine.setupLocalVideo(videoLocal.Handle, RenderMode.RenderMode_Hidden);

            m_engine.onJoinChannelSuccess      += new _IAgoraRtcEngineControlEvents_onJoinChannelSuccessEventHandler(this.onJoinChannelSuccess);
            m_engine.onRejoinChannelSuccess    += new _IAgoraRtcEngineControlEvents_onRejoinChannelSuccessEventHandler(this.onRejoinChannelSuccess);
            m_engine.onFirstRemoteVideoDecoded += new _IAgoraRtcEngineControlEvents_onFirstRemoteVideoDecodedEventHandler(this.onFirstRemoteVideoDecoded);
            m_engine.onApiCallExecuted         += new _IAgoraRtcEngineControlEvents_onApiCallExecutedEventHandler(this.onApiCallExecuted);
            m_engine.onLeaveChannel            += new _IAgoraRtcEngineControlEvents_onLeaveChannelEventHandler(this.onLeaveChannel);

            //String devices = m_engine.enumerateVideoCaptureDevices();
        }
Esempio n. 2
0
        private void setupRtcEngine()
        {
            m_engine = new AgoraRtcEngineControl();
            m_engine.initialize("Vendor Key");

            m_engine.enableVideo();
            m_engine.setupLocalVideo(videoLocal.Handle, RenderMode.RenderMode_Hidden);

            m_engine.onJoinChannelSuccess   += new _IAgoraRtcEngineControlEvents_onJoinChannelSuccessEventHandler(this.onJoinChannelSuccess);
            m_engine.onRejoinChannelSuccess += new _IAgoraRtcEngineControlEvents_onRejoinChannelSuccessEventHandler(this.onRejoinChannelSuccess);
            m_engine.onApiCallExecuted      += new _IAgoraRtcEngineControlEvents_onApiCallExecutedEventHandler(this.onApiCallExecuted);
            m_engine.onLeaveChannel         += new _IAgoraRtcEngineControlEvents_onLeaveChannelEventHandler(this.onLeaveChannel);
            m_engine.onUserJoined           += new _IAgoraRtcEngineControlEvents_onUserJoinedEventHandler(this.onUserJoined);
            m_engine.onUserOffline          += new _IAgoraRtcEngineControlEvents_onUserOfflineEventHandler(this.onUserOffline);
        }
Esempio n. 3
0
        private void setupRtcEngine()
        {
            m_engine = new AgoraRtcEngineControl();
            m_engine.initialize("Specify Your APP ID here");

            m_engine.setupLocalVideo(videoLocal.Handle, RenderMode.RenderMode_Hidden);

            m_engine.onJoinChannelSuccess += new _IAgoraRtcEngineControlEvents_onJoinChannelSuccessEventHandler(this.onJoinChannelSuccess);
            m_engine.onRejoinChannelSuccess += new _IAgoraRtcEngineControlEvents_onRejoinChannelSuccessEventHandler(this.onRejoinChannelSuccess);
            m_engine.onFirstRemoteVideoDecoded += new _IAgoraRtcEngineControlEvents_onFirstRemoteVideoDecodedEventHandler(this.onFirstRemoteVideoDecoded);
            m_engine.onApiCallExecuted += new _IAgoraRtcEngineControlEvents_onApiCallExecutedEventHandler(this.onApiCallExecuted);
            m_engine.onLeaveChannel += new _IAgoraRtcEngineControlEvents_onLeaveChannelEventHandler(this.onLeaveChannel);

            //String devices = m_engine.enumerateVideoCaptureDevices();
        }