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

Example of mixing the sampleBuffer of appAudio provided by RPScreenRecorder or BroadcastExtenion. #595

Open
Fanpei920 opened this issue Mar 22, 2021 · 1 comment

Comments

@Fanpei920
Copy link

Fanpei920 commented Mar 22, 2021

Description

I'm doing on a project which has a feature that sharing the in-app webview sound through RPScreenRecorder.

Already read the source code of ExampleReplayKitAudioCapturer from ReplayKit example, AudioDeviceExample and implemented the custom audio device, but didn't go well, It crashes and the output sounds in a higher tone, Can you any example of mixing the sampleBuffer of appAudio provided by RPScreenRecorder or BroadcastExtenion?

Steps to Reproduce

  1. Launch webview view.
  2. Let webview play some sound (like Youtube)
  3. Share the screen Use RPScreenRecorder (or BroadcastExtenion)

Expected Behavior

The appAudio should be mixed into mic recorded audio, then share with the participant.

Implemented Architecture

Screen Shot 2021-03-22 at 11 27 57

Problems

Cannot correctly implement the custom device to mediate mic input and sampleBuffer provided from RPScreenRecorder.

Discussion

Partially duplicated with #519, but in order to clarify the problem I made this issue.

@timrozum
Copy link
Contributor

HI @Fanpei920,

We have not implemented this ourselves yet with ReplayKit but it is on our roadmap. Unfortunately until then I don't think I can provide good insight into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants