Commit Graph

187 Commits (379104c532dbb7a68e66a8b63568cce94a069aae)

Author SHA1 Message Date
Matthew Chen 379104c532 Migrate to WebRTC proto wrappers. 7 years ago
Matthew Chen 579e88bdc2 Improve nullability handling for SignalAccount. 7 years ago
Matthew Chen 158aa3abc4 Tweak system messages; incomplete vs. missed calls. 7 years ago
Matthew Chen 8b3bdb88f3 Revert "Merge branch 'charlesmchen/tweakCalls'"
This reverts commit 3e0233ea60, reversing
changes made to 74ce3012cf.
7 years ago
Matthew Chen 1a9a5016fe Tweak calls. 7 years ago
Michael Kirk 2fdb62764d avoid occasional "call failure" after local hangup.
// FREEBIE
7 years ago
Michael Kirk 61156656aa Only PCC needs to know about the local RTCTrack 7 years ago
Michael Kirk afa385feae adapt to capturer abstraction 7 years ago
Michael Kirk 0cd1cb80cc Compiling, but video sending not working. 7 years ago
Michael Kirk 064035f3f4 WIP M67 - plumb through AVCaptureSession
TODO:

-[x] plumb through AVCaptureSession
-[] get AVCaptureSession from PeerConnectionClient
-[] RTCDataChannel not unwrapped
-[] no member avFoundationSource
-[] no member "back camera"
7 years ago
Matthew Chen ed19949d60 Respond to CR. 7 years ago
Matthew Chen e949d81568 Fix more call state edge cases. 7 years ago
Matthew Chen b2f884b882 Fix call state edge cases. 7 years ago
Matthew Chen 4d8c764789 Migrate to Swift 4. 7 years ago
Matthew Chen b2b62880c0 Migrate to Swift 4. 7 years ago
Matthew Chen 77b72b6b06 Migrate to Swift 4. 7 years ago
Matthew Chen 916d55c55d Migrate to Swift 4. 7 years ago
Matthew Chen 28f7142a59 Auto-migration to Swift 4. 7 years ago
Michael Kirk caa9e3ca67 Show missed call when call times out
// FREEBIE
7 years ago
Matthew Chen a722bcde72 Fix call termination reference. 7 years ago
Matthew Chen 7eab0569b6 PeerConnectionClient thread safety. 7 years ago
Matthew Chen 078da69ee0 PeerConnectionClient thread safety. 7 years ago
Matthew Chen 1d8c642346 Respond to CR. 7 years ago
Matthew Chen f68f3cc53d Call lifecycle edge cases. 7 years ago
Matthew Chen 3967a5ab05 Call lifecycle edge cases. 7 years ago
Michael Kirk 1967b5d29e "Reconnecting..." fixup
// FREEBIE
7 years ago
Michael Kirk e5b535ccf1 Implement camera direction toggle
// FREEBIE
7 years ago
Matthew Chen 6a8796ad04 Present calls using window manager. 7 years ago
Michael Kirk 0f46834e8d Show "Reconnecting..." on call screen
// FREEBIE
7 years ago
Michael Kirk 830ed884cf Only log timeout when call actually times out
// FREEBIE
7 years ago
Matthew Chen 6caa5b87b6 Add more asserts around thread in SAE. 7 years ago
Michael Kirk 319e0d808f Merge tag '2.21.0.14' into release/2.22.0 7 years ago
Michael Kirk bbdcd0c768 Call connection fixups
callUIAdapter is not a singleton (for better or for worse)

No one should hold a reference directly to it, but rather via the
CallService, which is a singleton

Wait a bit longer for initial call screen before terminating. Especially
first call can hit this limit.

When call *does* take too long to show, terminate properly to ensure
we're not left with a phantom call

// FREEBIE
7 years ago
Matthew Chen d6f4db1523 Rename TSStorageManager to OWSPrimaryStorage. 7 years ago
Matthew Chen 9db9409561 Share background tasks. 7 years ago
Michael Kirk 1d3831eccd Registration Lock reminder view
Also fixed: Don't lose PIN across registrations

// FREEBIE
7 years ago
Michael Kirk 5f305f844f Send ICE updates immediately after sending CallOffer for faster call
connection.

For legacy reasons, the call sender used to wait until after receiving
the call answer before sending the ICE updates. The primary motivation
was that if the receiving user hadn't accepted a new identity change,
rather than just seeing one "Tap to Accept New Safety Number" messages
for a call, they'd see one for the call offer and then a dozen more as
ICE updates trickled in.

We changed that behavior long ago, and effectively all clients will
avoid that case, while sending ICE updates immediately will allow calls
to connect without having to wait for an additional serialized round
trip between the caller and call recipient.

// FREEBIE
7 years ago
Michael Kirk 8dfe06e3f2 Ensure audio session is default after call is terminated.
Previously, we were enabling PlayAndRecord when a call ended due to the
CallService observer's "updateVideoTrack" callbacks.

// FREEBIE
7 years ago
Michael Kirk 707ab5f5a8 Minimize changes around call audio activity
// FREEBIE
7 years ago
Michael Kirk 4dd1c7813a Instrument calls to ensure audio session is maintained
// FREEBIE
7 years ago
Michael Kirk c646f76335 Garther audio concerns, clean up session when done
- sync speakerphone state manipulated from system call screen
  - Revert audio session after call failure, ensures media plays out of
    speaker after placing a failing call.
  - Replace notification with delegate pattern since we're already using
    delegate pattern here.
- Fixes voiceover accessibility after voice memo
- Avoid audio blip after pressing hangup
- Rename CallAudioSession -> OWSAudioSession
  Going to start using it for other non-call things since we want to
  gather all our audio session concerns.
- Resume background audio when done playing video
  - Extract OWSVideoPlayer which ensures audio is in proper state before
    playback
  - Move recording session logic to shared OWSAudioSession
  - Deactivate audio session when complete

// FREEBIE
7 years ago
Michael Kirk e3469649f7 Fix receiving calls
// FREEBIE
7 years ago
Matthew Chen e77c3e6717 Retain changes from session database branch. 7 years ago
Matthew Chen f9ce34f553 Improve background task logic. 7 years ago
Matthew Chen 7a1e47cd26 Add asserts around Swift singletons. 7 years ago
Matthew Chen 9da165b846 Continue conversion of app setup. 7 years ago
Matthew Chen b4e8df79da Migrate environment to SignalMessaging. 7 years ago
Matthew Chen 8cc33b3de1 Refine loading view of share extension. 7 years ago
Michael Kirk a11d83187b WIP: Framework-friendly - compiles but crashes on launch
// FREEBIE
7 years ago
Michael Kirk 81f097c1f5 Don't drop critical data messages
Assigning dataChannel sometimes happens after iceConnect.

Fixes symptom where Alice calls Bob.
Bob answers and sees the call UI as normal
but Alice sees call as continuing to ring

// FREEBIE
7 years ago