twilio / twilio-video-ios

Programmable Video SDK by Twilio
http://twilio.com/video
Other
64 stars 22 forks source link

Audio stops when receiving a carrier call or Siri is activated #250

Closed yllfejziu closed 1 year ago

yllfejziu commented 1 year ago

Description

Audio stops upon receiving a carrier call (starting another audio on youtube or anywhere, activating Siri) and doesn't continue after rejecting / finishing the call. The audio is lost whenever an audio session interruption is occurring and it's never reconnected (the video tracks are working fine).

Steps to Reproduce

  1. Connect to room with other participants
  2. Activate Siri or have someone call you

Expected Behavior

Audio reconnects back to room and you can hear other participants as well as they can hear you.

Actual Behavior

Audio doesn't reconnect after interruption and other participants cannot hear you and you can't hear them.

Reproduces How Often

Everytime

Logs

id: 91a43fF0b62BB5c38ee6F849880bBc12, revision: 2, type answer, Local SDP=
v=0

o=- 8543797840761343625 3 IN IP4 127.0.0.1

s=-

t=0 0

a=group:BUNDLE 0 1 audio0

a=msid-semantic: WMS 774cbCd9Ebb043fb95AEB6Af18eEc181

m=audio 59222 UDP/TLS/RTP/SAVPF 111 0

c=IN IP4 169.254.23.97

a=rtcp:9 IN IP4 0.0.0.0

a=candidate:3063215164 1 udp 2122260223 169.254.23.97 59222 typ host generation 0 network-id 1 network-cost 10

a=candidate:246268409 1 udp 2122194687 10.246.167.52 49345 typ host generation 0 network-id 8 network-cost 900

a=candidate:248004221 1 udp 2122134271 fd74:6572:6d6e:7573:c:3c30:49d6:7e91 64989 typ host generation 0 network-id 2 network-cost 50

a=candidate:1157018934 1 udp 2122068735 fd74:6572:6d6e:7573:d:3c30:49d6:7e91 63272 typ host generation 0 network-id 3 network-cost 50

a=candidate:248004221 1 udp 2122003199 fd74:6572:6d6e:7573:c:3c30:49d6:7e91 65487 typ host generation 0 network-id 5 network-cost 50

a=candidate:47536084 1 udp 2121932543 192.0.0.6 63917 typ host generation 0 network-id 4 network-cost 50

a=ice-ufrag:u/H+

a=ice-pwd:5kRIegEn0ldcI+/gIhSOhQSu

a=ice-options:trickle

a=fingerprint:sha-256 46:CE:00:61:3E:C3:10:C7:10:07:FF:3B:F5:AB:BE:73:3C:9C:63:92:D6:2E:3A:00:9E:04:33:69:56:EA:5B:DB

a=setup:passive

a=mid:0

a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level

a=sendonly

a=msid:774cbCd9Ebb043fb95AEB6Af18eEc181 Ce5a9Bc4Cff6dF9f6bc8eD9CdFB11EE6

a=rtcp-mux

a=rtpmap:111 opus/48000/2

a=fmtp:111 minptime=10;usedtx=1;useinbandfec=1

a=rtpmap:0 PCMU/8000

a=ssrc:1409244923 cname:QdyNgtB2teVzf2/t

m=video 9 UDP/TLS/RTP/SAVPF 96 102 127 125

c=IN IP4 0.0.0.0

a=rtcp:9 IN IP4 0.0.0.0

a=ice-ufrag:u/H+

a=ice-pwd:5kRIegEn0ldcI+/gIhSOhQSu

a=ice-options:trickle

a=fingerprint:sha-256 46:CE:00:61:3E:C3:10:C7:10:07:FF:3B:F5:AB:BE:73:3C:9C:63:92:D6:2E:3A:00:9E:04:33:69:56:EA:5B:DB

a=setup:passive

a=mid:1

a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time

a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01

a=inactive

a=rtcp-mux

a=rtcp-rsize

a=rtpmap:96 VP8/90000

a=rtcp-fb:96 goog-remb

a=rtcp-fb:96 transport-cc

a=rtcp-fb:96 ccm fir

a=rtcp-fb:96 nack

a=rtcp-fb:96 nack pli

a=rtpmap:102 H264/90000

a=rtcp-fb:102 goog-remb

a=rtcp-fb:102 transport-cc

a=rtcp-fb:102 ccm fir

a=rtcp-fb:102 nack

a=rtcp-fb:102 nack pli

a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f

a=rtpmap:127 red/90000

a=rtpmap:125 ulpfec/90000

m=audio 9 UDP/TLS/RTP/SAVPF 111

c=IN IP4 0.0.0.0

a=rtcp:9 IN IP4 0.0.0.0

a=ice-ufrag:u/H+

a=ice-pwd:5kRIegEn0ldcI+/gIhSOhQSu

a=ice-options:trickle

a=fingerprint:sha-256 46:CE:00:61:3E:C3:10:C7:10:07:FF:3B:F5:AB:BE:73:3C:9C:63:92:D6:2E:3A:00:9E:04:33:69:56:EA:5B:DB

a=setup:passive

a=mid:audio0

a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level

a=recvonly

a=rtcp-mux

a=rtpmap:111 opus/48000/2

a=fmtp:111 minptime=10;usedtx=1;useinbandfec=1

Versions

All versions

Video iOS SDK

5.5.0

Xcode

14.0.1

iOS Version

16.0

iOS Device

iPhone 12 Pro

piyushtank commented 1 year ago

@yllfejziu Thanks for reaching out. Are you using CallKit in your app? Here is example how to use callkit with the app for multicall/audio management.

yllfejziu commented 1 year ago

@piyushtank integrating call kit solved the issue.