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

Audio stopping from smartphone while using scrcpy #4954

Closed
nvn-bisht opened this issue May 29, 2024 · 3 comments
Closed

Audio stopping from smartphone while using scrcpy #4954

nvn-bisht opened this issue May 29, 2024 · 3 comments

Comments

@nvn-bisht
Copy link

Environment

  • OS: Arch Linux (Wayland)
  • scrcpy version: 2.4
  • installation method: yay
  • Android version: 14

Describe the bug
With sndcpy, we used to get audio from both the smartphone and the PC. However, with scrcpy, audio is only coming from one of them. Is there a way to make scrcpy output audio from both devices at the same time?

@rom1v
Copy link
Collaborator

rom1v commented May 29, 2024

Sndcpy and scrcpy use different mechanisms to capture audio:

There are two major drawbacks to the playback capture API used in sndcpy:

  • it lets Android apps decide if they can be captured or not (in practice, many apps are not captured),
  • it requires a real app (an APK) to be installed on the device (a real Android Context is necessary), that's the main reason why it's not implemented in scrcpy.

But as you noticed, unfortunately, we cannot keep audio on the device with the mechanism usedby scrcpy: #3875.

Also see #4884 (comment)

@Matrosya
Copy link

Matrosya commented Jun 4, 2024

I wanted to use this application as a video capture card. Since I output the sound and video to a computer with a large buffer, I need the sound from the phone so that I can play games without sound delay. It's unfortunate that there is no solution yet.

@rom1v
Copy link
Collaborator

rom1v commented Jul 16, 2024

Duplicate of #3875. Please test #5102.

@rom1v rom1v closed this as completed Jul 16, 2024
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

No branches or pull requests

3 participants