mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 20:06:51 +03:00
Merge pull request #6039 from vector-im/feature/dla/fix-sip-on-unhold
Direction and track need to be set for hold/unhold
This commit is contained in:
commit
46e8737426
2 changed files with 3 additions and 0 deletions
1
changelog.d/5865.bugfix
Normal file
1
changelog.d/5865.bugfix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Fix for audio only being received in one direction after an un-hold during a sip call.
|
|
@ -683,6 +683,8 @@ class WebRtcCall(
|
||||||
direction = RtpTransceiver.RtpTransceiverDirection.SEND_RECV
|
direction = RtpTransceiver.RtpTransceiverDirection.SEND_RECV
|
||||||
}
|
}
|
||||||
for (transceiver in peerConnection?.transceivers ?: emptyList()) {
|
for (transceiver in peerConnection?.transceivers ?: emptyList()) {
|
||||||
|
transceiver.sender.track()?.setEnabled(!onHold)
|
||||||
|
transceiver.receiver.track()?.setEnabled(!onHold)
|
||||||
transceiver.direction = direction
|
transceiver.direction = direction
|
||||||
}
|
}
|
||||||
updateMuteStatus()
|
updateMuteStatus()
|
||||||
|
|
Loading…
Reference in a new issue