Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
108.75k stars 10.47k forks source link

Scrcpy client does not play audio #5225

Open SuperTemich2005 opened 3 weeks ago

SuperTemich2005 commented 3 weeks ago

Environment

Describe the bug

Simply put, audio only plays on my phone. It does not get copied (or transfered) (or in any other way forwarded) to my PC. Running with --require-audio does not crash the client, so I can only assume the audio works in some sense. I want to hear phone calls while I'm wearing my headphones, so recording audio and playing audio files is not an option. Is scrcpy even capable of doing this?

Terminal shows no errors or warnings.

scrcpy 2.6.1 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO:     -->   (usb)  R5CTA2FFD2D                     device  SM_A536W
C:\Users\thevi\Desktop\scrcpy-win64-v2.6.1\scrcpy-server: 1 file pushed, 0 skipped. 35.7 MB/s (71112 bytes in 0.002s)
[server] INFO: Device: [samsung] samsung SM-A536W (Android 14)
INFO: Renderer: direct3d
INFO: Texture: 1080x2400
SuperTemich2005 commented 3 weeks ago

Additional notes: I've tried different launch parameters (--audio-source=output or something like that), I also found this strange video where this guy fixes this exact issue as I described, but it's in a not-english language and the link leads to countless ad-riddled link shorteners that tried downloading Unknown.msi to my PC on more than one occasion, and the scrcpy-server file I ended up having was outdated.

I also want to note that Phone Link is not an option. Not only it works only 20% of time, but it requires wireless connection and offers 0 options for wired connections. Besides, Windows 11 is my secondary OS I use during my active university sessions for maximum compatibility with MS Office (as my university has MS Office suite integrated completely with MS Teams and MS Whatever, so I cannot rely on ports and forks for linux). What if I want to use Kubuntu? Scrcpy is the only software I'll accept at this point...

rom1v commented 3 weeks ago

I want to hear phone calls while I'm wearing my headphones

Not possible. Only the audio output can be forwarded.

Does it work if you play a video for example?

mikelmulti460 commented 2 weeks ago

Same here.

Dependencies (compiled / linked):

In arch I can't listen to WhatsApp audios in the Scrcpy client, I'm sure it was possible before but I don't remember which version. Youtube works. Netflix too. I use my cell phone on my vertical screen to answer messages that normally arrive in audios and to continue testing app development.