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);
     localI420FrameReadyDelegate = new I420FrameReadyInternalDelegate(
         RaiseLocalVideoFrameReady);
     RegisterOnLocalI420FrameReady(mPeerConnectionId, localI420FrameReadyDelegate);
     remoteI420FrameReadyDelegate = new I420FrameReadyInternalDelegate(
         RaiseRemoteVideoFrameReady);
     RegisterOnRemoteI420FrameReady(mPeerConnectionId, remoteI420FrameReadyDelegate);
 }
 private static extern bool RegisterOnRemoteI420FrameReady(int peerConnectionId,
                                                           I420FrameReadyInternalDelegate callback);