Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

answering videocalls on callkit when the screen is locked often doesn't work #1784

Open
ara4n opened this issue Feb 23, 2018 · 5 comments
Open
Labels
P2 T-Defect Something isn't working: bugs, crashes, hangs and other reported problems

Comments

@ara4n
Copy link
Member

ara4n commented Feb 23, 2018

if you hit the video button to try to turn on the camera, it sits there stuck in 'connecting' state after you unlock the screen

@manuroe manuroe added T-Defect Something isn't working: bugs, crashes, hangs and other reported problems P2 labels Mar 16, 2018
@SylvainMorisse
Copy link

I'd be ready to work on this if anyone could share information i'd be happy to share

@farialima
Copy link

Note that the issue happens also when the app is in the background, or hasn't been started yet - it's not directly related to locked screen.

I'm trying to investigate a little...

@farialima
Copy link

farialima commented Jan 29, 2019

comparing the logs of when it works and when it doesn't, and grepping for "MXJingleCallStackCall", I shows this potentially interesting difference:

  • when it works (app already in for foreground):
(...)
Riot[3642:355100] [MXJingleCallStackCall] didGenerateIceCandidate: RTCIceCandidate:
Riot[3642:355100] [MXJingleCallStackCall] didChangeIceGatheringState: 2
Riot[3642:355100] [MXJingleCallStackCall] didChangeIceConnectionState: 2
Riot[3642:355100] [MXJingleCallStackCall] didChangeIceConnectionState: 5
Riot[3642:355100] [MXJingleCallStackCall] didChangeIceConnectionState: 6
Riot[3642:355100] [MXJingleCallStackCall] didChangeSignalingState: 5
  • when it doesn't work (app in background):
(...)
Riot[3642:355100] [MXJingleCallStackCall] didGenerateIceCandidate: RTCIceCandidate:
Riot[3642:355100] [MXJingleCallStackCall] didChangeIceConnectionState: 6
Riot[3642:355100] [MXJingleCallStackCall] didChangeIceGatheringState: 2
Riot[3642:355100] [MXJingleCallStackCall] didChangeSignalingState: 5

which causes then the MXCallState to go from MXCallStateConnecting to MXCallStateEnded (when failing, the log shows [MXCall] setState. old: 6. New: 8) instead of MXCallStateConnected (when working OK, the log show [MXCall] setState. old: 6. New: 7)

Will look at it more but if anyone has an idea...

@farialima
Copy link

Per discussion with @manuroe , most likely the first step toward a fix would be to upgrade the webRTC libraries that are very old. See #1483 (comment) and subsequent comments

@Tokodomo
Copy link

Tokodomo commented May 8, 2019

Per discussion with @manuroe , most likely the first step toward a fix would be to upgrade the webRTC libraries that are very old. See #1483 (comment) and subsequent comments

^ Sadly, upgrading to the latest version (v0.8.6) doesn't seem to solve the issue. This is really annoying and a show-stopper in every way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 T-Defect Something isn't working: bugs, crashes, hangs and other reported problems
Projects
None yet
Development

No branches or pull requests

5 participants