-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
Android 10 audio forwarding #933
Comments
Absolutely: #14 (comment) |
Will it be possible officially, then? Even for Windows? |
If it works, yes. That would be great. The problem is finding time to work on it (especially to investigate how to receive audio packets using private APIs without Android context). 😞 |
Why doesn't Google offer an official API for this? They have an adb command for recording, but not including audio... |
Wait, you somehow run code on the device, without installing anything? |
Installing an "app" via an app store is not the only way to get something running on an Android device. You can push files to device via |
I said "without installing anything". |
Sure, why not? There are limitations, I think, as to what a process can do that is launched that way, so you can still be limited in what APIs you can call from such a process, but at least for grabbing screen surface and video encoding, it has sufficient means to do so. |
This is incredible. What are the limitations, then? |
I'm not exactly sure of the limitations or what would constitute being a lot or a little, but take a look at |
Amazing. Seems you used a lot of reflection though. |
Oh, I'm not the author of it - you'd have to ask @rom1v on how he did the research and the level of experimentation that it took :) |
OK just know that I had this expression like you have on your avatar... |
https://developer.android.com/guide/topics/media/playback-capture
The shell does not have this permission 😢 So it will require to install an apk. 😞 |
So why not keep an optional APK just for audio? |
In my phone android 10 and desktop debain testing, https://android.stackexchange.com/questions/58026/how-to-stream-audio-from-android-to-pulseaudio-server working |
I don't mind having an additional APK for this, as long as it doesn't ruin other things. |
@rom1v Either I don't get how to make it work, or it doesn't work. I tried this:
Nothing occurs . It shows a notification of "sndcpy" with "Waiting for connection..." and yet it shows as if there is a video capture (the red icon on the status bar). |
Did you press "Enter" in the sndcpy terminal? What's the output in your terminal? Also, is it Android 10? Or Android 11? |
Yes, that's step 5 that I wrote about. There is no output on the terminal , because it was closed when I pressed Enter... |
OK, is VLC installed on your computer? Try to run it from |
VLC is installed on the PC, but do I need to start it? What exactly to do with VLC? |
Read |
That's step 3. Already done this. And I tried to run VLC on my own too. |
Wait, you wrote "Read " ? Why read it? You meant "run" ? |
No, I meant read. You will understand how VLC is used :) |
Read? But it doesn't say anything when running it, about VLC. |
What is the output of the terminal when you run
As a user, you don't really need to know. Running |
As I wrote, when pressing Enter, it closes.
The weird thing is that when I tried on another PC (a laptop actually), it worked fine. |
This is the relevant message. Is your vlc installed in |
For some reason it decided to be installed on "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" instead. I decided to uninstall it, and re-install it, because maybe it installed as 32 bit or something. Now it's on the path you wrote. This is what I see on the console this time:
|
👍
What app do you test on your device? Try youtube or VLC android for example. I think we could continue on rom1v/sndcpy#1 (comment). |
I used YouTube |
The same device works on another laptop?
But on this laptop, no sound? |
I tried on YouTube. |
OK I tested again today. |
👍
Yes, that's the expected behavior (the playback capture API works this way). |
Shouldn't it at least set the volume to minimal? |
Hey friend, |
Are you considering adding audio forwarding for Android 10 when they added https://developer.android.com/guide/topics/media/playback-capture ?
The text was updated successfully, but these errors were encountered: