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

iOS screen share audio #576

Draft
wants to merge 39 commits into
base: main
Choose a base branch
from
Draft

iOS screen share audio #576

wants to merge 39 commits into from

Conversation

ladvoc
Copy link
Contributor

@ladvoc ladvoc commented Feb 5, 2025

This PR adds support for capturing application audio during screen share when using a broadcast extension.

Note: PR #565 should be merged first, as this PR is based on that branch.

ladvoc added 30 commits January 24, 2025 09:21
- Rename `SocketConnectionFrameReader` to `SocketConnectionSampleReader`.
- Utilize the new `HTTPMessageReader` and `BroadcastSampleDecoder` types.
- Replaces the functionality of the existing `Message` class.
- `didCapture` now emits a `BroadcastSample`.
- General refactoring for enhanced readability.
- Uses the Network framework
- Enables bi-directional communication and dynamic message headers
- Create `BroadcastUploader` and `BroadcastReceiver` utilizing `IPCChannel`
- Separates concerns of socket communication, message format, and sample encoding/decoding
- Integrate into existing code
- Remove old components
Ensure proper handling of channel closure initiated either by the capture ending or the broadcast ending.
- Fix socket tests for iOS by using relative paths
- Replace `@Atomic` with `StateSync` in preparation for adding audio support.
- Make `upload(_:with:)` non-async; ReplayKit docs state references to the sample buffer should not be kept after `processSampleBuffer(_:type:)` returns.
@ladvoc ladvoc marked this pull request as draft February 5, 2025 18:55
@ladvoc ladvoc mentioned this pull request Feb 6, 2025
@ladvoc ladvoc mentioned this pull request Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant