Skip to content
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

scrcpy 2.6 #179288

Merged
merged 2 commits into from
Aug 1, 2024
Merged

scrcpy 2.6 #179288

merged 2 commits into from
Aug 1, 2024

Conversation

BrewTestBot
Copy link
Member

@BrewTestBot BrewTestBot commented Aug 1, 2024

Created by brew bump


Created with brew bump-formula-pr.

  • resource blocks have been checked for updates.
release notes
_To receive a notification on new releases, click on **Watch > Custom > Releases** on the top._

scrcpy v2.6

Changes since v2.5:

  • Add audio playback capture method (#4380, #5102)
  • Add audio duplication feature (#3875, #4380, #5102)
  • Add mouse secondary bindings with Shift+click (#5055, #5076)
  • Rework mouse events (#5067, #5076)
  • Fix "turn screen off" for Honor devices (#4823, #4943, #5109)
  • Add clipboard workaround for Honor devices (#4822, #5073)
  • Always apply device workarounds (#4922, #5140, #5148, #5154)
  • Fix missing initialization (#5057, #5058)
  • Do not report error on device disconnected (#5044)
  • Upgrade SDL to 2.30.5 in Windows releases
  • Various technical fixes

Highlights

Audio mirroring

Audio forwarding was introduced in scrcpy 2.0. Until now, when audio was captured by scrcpy, it was necessarily disabled on the device.

This release introduces a new audio capture method, which (optionally) supports audio duplication, to keep playing audio on the device. It is exposed as an alternative audio source named playback (in addition to output, the default, and mic).

scrcpy --audio-source=playback               # do not play on the device
scrcpy --audio-source=playback --audio-dup   # keep playing on the device

For convenience, --audio-dup automatically selects the playback audio source. Therefore, to mirror audio rather than forward, this is sufficient:

scrcpy --audio-dup

However, this playback capture has some drawbacks:

  • it requires Android 13 (rather than Android 11),
  • Android apps can opt-out, in which case they are not captured.

See documentation, #4380, #5102.

Secondary mouse bindings

By default, with SDK mouse:

  • right-click triggers BACK (or POWER on)
  • middle-click triggers HOME
  • the 4th click triggers APP_SWITCH
  • the 5th click expands the notification panel

It was also possible to forward the clicks to the device instead, by using the --mouse-bind=xxxx option introduced in the previous version (2.5). But that way, we had to choose at startup whether a button triggered a shortcut or a click.

This release introduces a new set of secondary bindings via Shift+click, so that both are possible at runtime.

By default, a simple click triggers the shortcuts, and Shift+click forwards the click to the device.

In AOA and UHID mouse modes, the default bindings are reversed: all clicks are forwarded by default, and pressing Shift gives access to the shortcuts (since the cursor is handled on the device side, it makes more sense to forward all mouse buttons by default in these modes).

All these mouse bindings can be configured, check the documentation.

See #5076.


@github-actions github-actions bot added bump-formula-pr PR was created using `brew bump-formula-pr` ffmpeg FFMPEG use is a significant feature of the PR or issue labels Aug 1, 2024
scrcpy: prebuilt-server 2.6

Signed-off-by: Rui Chen <[email protected]>
Copy link
Contributor

github-actions bot commented Aug 1, 2024

@github-actions github-actions bot added the CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. label Aug 1, 2024
@BrewTestBot BrewTestBot enabled auto-merge August 1, 2024 23:20
@BrewTestBot BrewTestBot added this pull request to the merge queue Aug 1, 2024
Merged via the queue into master with commit 684304d Aug 1, 2024
15 checks passed
@BrewTestBot BrewTestBot deleted the bump-scrcpy-2.6 branch August 1, 2024 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump-formula-pr PR was created using `brew bump-formula-pr` CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. ffmpeg FFMPEG use is a significant feature of the PR or issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants