private void RegisterCallbacks()
 {
     localDataChannelReadyDelegate = new LocalDataChannelReadyInternalDelegate(
         RaiseLocalDataChannelReady);
     RegisterOnLocalDataChannelReady(mPeerConnectionId, localDataChannelReadyDelegate);
     dataFromDataChannelReadyDelegate = new DataFromDataChannelReadyInternalDelegate(
         RaiseDataFromDataChannelReady);
     RegisterOnDataFromDataChannelReady(mPeerConnectionId, dataFromDataChannelReadyDelegate);
     failureMessageDelegate = new FailureMessageInternalDelegate(RaiseFailureMessage);
     RegisterOnFailure(mPeerConnectionId, failureMessageDelegate);
     audioBusReadyDelegate = new AudioBusReadyInternalDelegate(RaiseAudioBusReady);
     RegisterOnAudioBusReady(mPeerConnectionId, audioBusReadyDelegate);
     localI420FrameReadyDelegate = new I420FrameReadyInternalDelegate(
         RaiseLocalVideoFrameReady);
     RegisterOnLocalI420FrameReady(mPeerConnectionId, localI420FrameReadyDelegate);
     remoteI420FrameReadyDelegate = new I420FrameReadyInternalDelegate(
         RaiseRemoteVideoFrameReady);
     RegisterOnRemoteI420FrameReady(mPeerConnectionId, remoteI420FrameReadyDelegate);
     localSdpReadytoSendDelegate = new LocalSdpReadytoSendInternalDelegate(
         RaiseLocalSdpReadytoSend);
     RegisterOnLocalSdpReadytoSend(mPeerConnectionId, localSdpReadytoSendDelegate);
     iceCandiateReadytoSendDelegate =
         new IceCandiateReadytoSendInternalDelegate(RaiseIceCandiateReadytoSend);
     RegisterOnIceCandiateReadytoSend(
         mPeerConnectionId, iceCandiateReadytoSendDelegate);
 }
Exemple #2
0
        private void RegisterCallbacks()
        {
            localDataChannelReadyDelegate = new LocalDataChannelReadyInternalDelegate(
                RaiseLocalDataChannelReady);
            RegisterOnLocalDataChannelReady(mPeerConnectionId, localDataChannelReadyDelegate);

            dataFromDataChannelReadyDelegate = new DataFromDataChannelReadyInternalDelegate(
                RaiseDataFromDataChannelReady);
            RegisterOnDataFromDataChannelReady(mPeerConnectionId, dataFromDataChannelReadyDelegate);

            failureMessageDelegate = new FailureMessageInternalDelegate(RaiseFailureMessage);
            RegisterOnFailure(mPeerConnectionId, failureMessageDelegate);

            audioBusReadyDelegate = new AudioBusReadyInternalDelegate(RaiseAudioBusReady);
            RegisterOnAudioBusReady(mPeerConnectionId, audioBusReadyDelegate);

            FramgeGate_ReceivedDelegate = new ReceivedRGBFrameInternalDelegate(RaiseRGBVideoFrameReady);
            FrameGate_RegisterOnRecieved(mPeerConnectionId, FramgeGate_ReceivedDelegate);

            localSdpReadytoSendDelegate = new LocalSdpReadytoSendInternalDelegate(
                RaiseLocalSdpReadytoSend);
            RegisterOnLocalSdpReadytoSend(mPeerConnectionId, localSdpReadytoSendDelegate);

            iceCandiateReadytoSendDelegate =
                new IceCandiateReadytoSendInternalDelegate(RaiseIceCandiateReadytoSend);
            RegisterOnIceCandiateReadytoSend(
                mPeerConnectionId, iceCandiateReadytoSendDelegate);
        }
 private static extern bool RegisterOnIceCandiateReadytoSend(
     int peerConnectionId, IceCandiateReadytoSendInternalDelegate callback);