Search in sources :

Example 6 with JingleRtpConnection

use of eu.siacs.conversations.xmpp.jingle.JingleRtpConnection in project Conversations by siacs.

the class RtpSessionActivity method onStop.

@Override
public void onStop() {
    mHandler.removeCallbacks(mTickExecutor);
    binding.remoteVideo.release();
    binding.remoteVideo.setOnAspectRatioChanged(null);
    binding.localVideo.release();
    final WeakReference<JingleRtpConnection> weakReference = this.rtpConnectionReference;
    final JingleRtpConnection jingleRtpConnection = weakReference == null ? null : weakReference.get();
    if (jingleRtpConnection != null) {
        releaseVideoTracks(jingleRtpConnection);
    }
    releaseProximityWakeLock();
    super.onStop();
}
Also used : JingleRtpConnection(eu.siacs.conversations.xmpp.jingle.JingleRtpConnection)

Aggregations

JingleRtpConnection (eu.siacs.conversations.xmpp.jingle.JingleRtpConnection)6 AppRTCAudioManager (eu.siacs.conversations.services.AppRTCAudioManager)2 Media (eu.siacs.conversations.xmpp.jingle.Media)2 SuppressLint (android.annotation.SuppressLint)1 Contact (eu.siacs.conversations.entities.Contact)1 AbstractJingleConnection (eu.siacs.conversations.xmpp.jingle.AbstractJingleConnection)1 JingleConnectionManager (eu.siacs.conversations.xmpp.jingle.JingleConnectionManager)1 RtpEndUserState (eu.siacs.conversations.xmpp.jingle.RtpEndUserState)1