public boolean isAvailable ( ) { // The channel is available is is connected boolean available = this . rtpChannel != null && this . rtpChannel . isConnected ( ) ; // In case of WebRTC calls the DTLS handshake must be completed if ( this . isWebRtc ) { available = available && this . webRtcHandler . isHandshakeComplete ( ) ; } return available ; }
Checks whether the data channel is available for media exchange .