-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
No audio forwarding on Android 12 #4884
Comments
Do you have some headphones connected? |
You mean headphones connected to my PC or the device running Android. Updated: I tried to disconnect and retry to scrcpy. But it still doesn't work. |
Weird, which device is it? Does it work with another device? |
It's an Android-based embedded project. Is there any abnormal point captured on log? |
Or something not implemented related to REMOTE_SUBMIX capture. Can you connect bluetooth earphones to this device? If so, is the audio correctly played in the earphones? |
Yes... I have tested it with my Android phone. The audio is output at PC normally.
Actually, cannot connect BT earphones to this device. It doesn't support as an A2dpSource Audio gateway. FYI, |
@rom1v |
They are very different. Sndcpy was just a proof-of-concept using the playback capture API introduced in Android 10. It installs a real app (an .apk) on the device (contrary to scrcpy which executes a Java main to get shell permissions, but cannot have a real Android Context necessary for some APIs). One major drawback of this playback capture API is that it lets Android apps decide if they can be captured or not. In practice, many apps were just not captured. For simplicity, the PoC just used VLC to play the stream, so there was absolutely no mechanism to regulate latency (so it's easy to get a lot of latency). Scrcpy uses another mechanism to capture audio (which does not require an app, see #3757). And of course, there is a latency compensation mechanism (see an overview in this blog post). |
For what it's worth, I am also experiencing the same issue on a Samsung Galaxy S10 SM-G973F (Android 12). EDIT: Turns out, i'm not running v2 as im using ubuntu 24.04. So that explains why. |
Environment
Describe the bug
I used scrcpy version of 2.4 to capture the screen and audio. But only the screen is shown but audio. Audio still is output at device.
Please refer to the log print for more information. Thank you.
The text was updated successfully, but these errors were encountered: