Forward audio by rom1v · Pull Request #3757 · Genymobile/scrcpy (original) (raw)
rom1v added a commit that referenced this pull request
Rename VideoStreamer to Streamer, and extract a Codec interface which will also support audio codecs.
rom1v added a commit that referenced this pull request
This will allow to use "codec" for the Codec type.
rom1v added a commit that referenced this pull request
The provided encoder name depends on the selected codec. Improve the error message and the suggestions.
rom1v added a commit that referenced this pull request
Since scrcpy-server is not an Android application (it's a java executable), it has no Context.
Some features will require a Context instance to get the package name and the UID. Add a FakeContext for this purpose.
Co-authored-by: Romain Vimont rom@rom1v.com Signed-off-by: Romain Vimont rom@rom1v.com
rom1v added a commit that referenced this pull request
FakeContext already provides an AttributeSource instance.
Co-authored-by: Simon Chan 1330321+yume-chan@users.noreply.github.com
rom1v added a commit that referenced this pull request
rom1v added a commit that referenced this pull request
Remove USER_ID from ServiceManager, and replace it by a constant in FakeContext.
This is the same as android.os.Process.ROOT_UID, but this constant has been introduced in API 29.
rom1v added a commit that referenced this pull request
rom1v added a commit that referenced this pull request
This will expose the correct package name and UID to the application context.
rom1v added a commit that referenced this pull request
Audio will be enabled by default (when supported). Add an option to disable it.
Co-authored-by: Romain Vimont rom@rom1v.com Signed-off-by: Romain Vimont rom@rom1v.com
rom1v added a commit that referenced this pull request
When audio is enabled, open a new socket to send the audio stream from the device to the client.
Co-authored-by: Romain Vimont rom@rom1v.com Signed-off-by: Romain Vimont rom@rom1v.com
rom1v added a commit that referenced this pull request
Create an AudioRecorder to capture the audio source REMOTE_SUBMIX.
For now, the captured packets are just logged into the console.
Co-authored-by: Romain Vimont rom@rom1v.com Signed-off-by: Romain Vimont rom@rom1v.com
All server logs were printed to stdout, while all client logs were printed to stderr.
Instead, use stderr for warnings and errors, stdout for the others:
- stdout: verbose, debug, info
- stderr: warn, error
Expose an API to change the priority of the current thread.
The audio demuxer thread is the one filling the audio buffer read by the SDL audio thread. It is time critical to avoid buffer underflow.
Recording is background task, writing the packets to a file is not urgent.
rom1v mentioned this pull request
rom1v mentioned this pull request
rom1v mentioned this pull request
2 tasks
rom1v mentioned this pull request
rom1v mentioned this pull request
2 tasks
rom1v mentioned this pull request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})