~singpolyma/cheogram-android

6c0b41052a39c798da27d3c58d40ddd6ca881de9 — Stephen Paul Weber 1 year, 3 months ago 42c09f4 2.12.1-4
Fix DTMF causes track to become disposed
1 files changed, 2 insertions(+), 2 deletions(-)

M src/main/java/eu/siacs/conversations/xmpp/jingle/WebRTCWrapper.java
M src/main/java/eu/siacs/conversations/xmpp/jingle/WebRTCWrapper.java => src/main/java/eu/siacs/conversations/xmpp/jingle/WebRTCWrapper.java +2 -2
@@ 686,10 686,10 @@ public class WebRTCWrapper {
    }

    public boolean applyDtmfTone(String tone) {
        if (toneManager == null || peerConnection == null || peerConnection.getSenders().isEmpty()) {
        if (toneManager == null || peerConnection == null || localAudioTrack == null) {
            return false;
        }
        peerConnection.getSenders().get(0).dtmf().insertDtmf(tone, TONE_DURATION, 100);
        localAudioTrack.rtpSender.dtmf().insertDtmf(tone, TONE_DURATION, 100);
        toneManager.startTone(TONE_CODES.get(tone), TONE_DURATION);
        return true;
    }