Forward audio by rom1v · Pull Request #3757 · Genymobile/scrcpy (original) (raw)

@rom1v mentioned this pull request

Feb 26, 2023

rom1v added a commit that referenced this pull request

Mar 3, 2023

@rom1v

Rename VideoStreamer to Streamer, and extract a Codec interface which will also support audio codecs.

PR #3757 <#3757>

rom1v added a commit that referenced this pull request

Mar 3, 2023

@rom1v

This will allow to use "codec" for the Codec type.

PR #3757 <#3757>

rom1v added a commit that referenced this pull request

Mar 3, 2023

@rom1v

The provided encoder name depends on the selected codec. Improve the error message and the suggestions.

PR #3757 <#3757>

rom1v added a commit that referenced this pull request

Mar 3, 2023

@yume-chan @rom1v

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.

PR #3757 <#3757>

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

Mar 3, 2023

@rom1v @yume-chan

FakeContext already provides an AttributeSource instance.

PR #3757 <#3757>

Co-authored-by: Simon Chan 1330321+yume-chan@users.noreply.github.com

rom1v added a commit that referenced this pull request

Mar 3, 2023

@rom1v

rom1v added a commit that referenced this pull request

Mar 3, 2023

@rom1v

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.

PR #3757 <#3757>

rom1v added a commit that referenced this pull request

Mar 3, 2023

@rom1v

rom1v added a commit that referenced this pull request

Mar 3, 2023

@rom1v

This will expose the correct package name and UID to the application context.

PR #3757 <#3757>

rom1v added a commit that referenced this pull request

Mar 3, 2023

@yume-chan @rom1v

Audio will be enabled by default (when supported). Add an option to disable it.

PR #3757 <#3757>

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

Mar 3, 2023

@yume-chan @rom1v

When audio is enabled, open a new socket to send the audio stream from the device to the client.

PR #3757 <#3757>

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

Mar 3, 2023

@yume-chan @rom1v

Create an AudioRecorder to capture the audio source REMOTE_SUBMIX.

For now, the captured packets are just logged into the console.

PR #3757 <#3757>

Co-authored-by: Romain Vimont rom@rom1v.com Signed-off-by: Romain Vimont rom@rom1v.com

@rom1v

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:

@rom1v

Expose an API to change the priority of the current thread.

@rom1v

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.

@rom1v

Recording is background task, writing the packets to a file is not urgent.

@rom1v rom1v mentioned this pull request

Mar 12, 2023

@rom1v rom1v mentioned this pull request

Mar 13, 2023

@rom1v rom1v mentioned this pull request

Jun 17, 2023

2 tasks

@rom1v rom1v mentioned this pull request

Nov 7, 2023

@rom1v rom1v mentioned this pull request

Apr 25, 2024

2 tasks

@rom1v rom1v mentioned this pull request

May 29, 2024

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 }})