(FRONT) FRONT (2025)

Data.  Return to WebRTC service  

   1:  package com.voipplus.mmsclient.WebRTC;
   2:  
   3:  import livekit.org.webrtc.DataChannel;
   4:  
   5:  public class DataChannelManager {
   6:      private static final String TAG = "DataChannelManager";
   7:      private DataChannel dataChannel;
   8:      private final WebRTCService webRTCService;
   9:  
  10:      public DataChannelManager(WebRTCService webRTCService) {
  11:          this.webRTCService = webRTCService;
  12:      }
  13:  
  14:      public void onDataChannelOpened(DataChannel dataChannel) {
  15:          WebRTCUtils.debugInfo(TAG, "onDataChannelOpened: DataChannel opened=" + dataChannel.label(), webRTCService.getWebRTCState(), webRTCService.safeGetPeerConnection(), dataChannel, webRTCService.safeGetWebSocket(), webRTCService.getSafeSignalinServerUrl());
  16:          this.dataChannel = dataChannel;
  17:          webRTCService.notifyListeners("onDataChannel", dataChannel);
  18:      }
  19:  
  20:      public DataChannel getDataChannel() {
  21:           return dataChannel;
  22:      }
  23:  
  24:      public void setDataChannel(DataChannel channel) {
  25:           this.dataChannel = channel;
  26:      }
  27:  }
  28:  

Return to WebRTC service




Android context:




Testing context:



Comments ( )
Link to this page: http://www.vb-net.com/AndroidMosaic/Data.htm
< THANKS ME>