/** * Notifies this instance that the <tt>SctpConnection</tt> of/associated with a specific * <tt>Endpoint</tt> participating in this <tt>Conference</tt> has changed. * * @param endpoint the <tt>Endpoint</tt> participating in this <tt>Conference</tt> which has had * its (associated) <tt>SctpConnection</tt> changed */ private void endpointSctpConnectionChanged( Endpoint endpoint, SctpConnection oldValue, SctpConnection newValue) { // We want to fire initial events (e.g. dominant speaker) over the // SctpConnection as soon as it is ready. if (oldValue != null) { oldValue.removeChannelListener(webRtcDataStreamListener); } if (newValue != null) { newValue.addChannelListener(webRtcDataStreamListener); // The SctpConnection may itself be ready already. If this is the // case, then it has now become ready for this Conference. if (newValue.isReady()) sctpConnectionReady(newValue); } }