Add the VirtualDisplay method to fix the SurfaceControl API changes. by DerekWuYD · Pull Request #4657 · Genymobile/scrcpy (original) (raw)

@DerekWuYD

Use DisplayManager to create VirtualDisplay object replace origin SurfaceControl method Add the MediaProjectionGlobal workaround for some transitional version Android ROM.

@DerekWuYD mentioned this pull request

Feb 9, 2024

rom1v pushed a commit that referenced this pull request

Feb 9, 2024

@DerekWuYD @rom1v

The method SurfaceControl.createDisplay() has been removed in AOSP.

Use DisplayManager to create a VirtualDisplay object instead.

Fixes #4646 <#4646> Fixes #4656 <#4656> PR #4657 <#4657>

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

@rom1v rom1v mentioned this pull request

Feb 9, 2024

2 tasks

rom1v pushed a commit that referenced this pull request

Feb 9, 2024

@DerekWuYD @rom1v

The method SurfaceControl.createDisplay() has been removed in AOSP.

Use DisplayManager to create a VirtualDisplay object instead.

Fixes #4646 <#4646> Fixes #4656 <#4656> PR #4657 <#4657>

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

rom1v pushed a commit that referenced this pull request

Feb 10, 2024

@DerekWuYD @rom1v

The method SurfaceControl.createDisplay() has been removed in AOSP.

Use DisplayManager to create a VirtualDisplay object instead.

Fixes #4646 <#4646> Fixes #4656 <#4656> PR #4657 <#4657>

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

@rom1v rom1v mentioned this pull request

Feb 10, 2024

2 tasks

This was referenced

Feb 17, 2024

@rom1v rom1v mentioned this pull request

Feb 26, 2024

armm29393 added a commit to armm29393/scrcpy-root that referenced this pull request

May 24, 2024

@armm29393

bartsaintgermain pushed a commit to bartsaintgermain/scrcpy that referenced this pull request

Apr 11, 2025

@DerekWuYD

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