-
-
Notifications
You must be signed in to change notification settings - Fork 11k
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 forwarding but keep on-phone audio on #3875
Comments
As soon as the "remote submix" audio source is captured on Android, audio is automatically disabled on the device. I didn't find any way to configure this behavior. If someone finds a way, I would be happy to add an option in scrcpy. |
How about an app install to phone with using the AudioPlaybackCapture API? It's or not and so is it possible to capture audio only with an app and send it via adb? |
Installing an additional app would add a lot of complexity (this implies 2 parts on the server side to coordinate with the client). As long as I can avoid that, I don't want to add an app (refs #3517).
The AudioPlaybackCapture API is the API used by sndcpy. But it lets apps decide whether that can be captured or not, so in practice many apps are not captured. (refs blogpost) |
Isn't it possible then to have audio in both the computer and the android device? |
@rom1v Combining this with sndcpy can achieve this situation, but there is a non-negligible delay in the sound. I hope developers can find a better method. Secondly, I am thinking about how to solve the problem of scrcpy's audio forwarding function failing when the microphone is turned on on the mobile phone. I hope I can get help. |
To investigate: #4380 |
Wow, the same question sure has been asked a lot. I recommend pinning the Issue as a known Issue. It might cut down on some of the repeat questions. Maybe reword it along the lines of "Playing from Device/Headphones and PC at the same time" |
glad to know this is something still being worked on, any chance of seeing this feature in the near future? |
Add an option to duplicate audio on the device, compatible with the new audio playback capture (--audio-source=playback). Fixes #3875 <#3875> Fixes #4380 <#4380> Suggested-by: Simon Chan <[email protected]>
Yes, now: #5102. |
Add an option to duplicate audio on the device, compatible with the new audio playback capture (--audio-source=playback). Fixes #3875 <#3875> Fixes #4380 <#4380> Co-authored-by: Simon Chan <[email protected]>
Released in scrcpy 2.6 🚀 https://github.com/Genymobile/scrcpy/blob/master/doc/audio.md#duplication |
Add an option to duplicate audio on the device, compatible with the new audio playback capture (--audio-source=playback). Fixes Genymobile#3875 <Genymobile#3875> Fixes Genymobile#4380 <Genymobile#4380> PR Genymobile#5102 <Genymobile#5102> Co-authored-by: Simon Chan <[email protected]>
Add an option to duplicate audio on the device, compatible with the new audio playback capture (--audio-source=playback). Fixes Genymobile#3875 <Genymobile#3875> Fixes Genymobile#4380 <Genymobile#4380> PR Genymobile#5102 <Genymobile#5102> Co-authored-by: Simon Chan <[email protected]>
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
I try stream some mobile games via scrcpy, not only the audio forwarding but also the audio on-phone I need, that I can connect my headphone to the phone and have a no delay gameplay with an audio-on streaming
The text was updated successfully, but these errors were encountered: