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

Unable to synchronize clipboard properly When --no-video-playback #4418

Closed
2 tasks
Max66888 opened this issue Nov 11, 2023 · 1 comment
Closed
2 tasks

Unable to synchronize clipboard properly When --no-video-playback #4418

Max66888 opened this issue Nov 11, 2023 · 1 comment

Comments

@Max66888
Copy link

Max66888 commented Nov 11, 2023

  • I have read the FAQ.
  • I have searched in existing issues.

Environment

  • OS: Windows 19045.3086
  • scrcpy version: scrcpy-win64-v2.2
  • installation method: Github release
  • device model: [Xiaomi] Xiaomi 23046RP50C (Android 13) [Mi pad 6 Pro]
  • Android version: 13

Describe the bug
When i use --no-video-playback or --no-video
Unable to synchronize clipboard properly
The console will display two messages once copied, but no content has been received on the Windows
But when I'm not using --no-video-playback,
clipboard synchronization works normally and only displays one message at a time when copying

Message :

INFO: Device clipboard copied
INFO: Device clipboard copied

I haven't found a suitable clipboard synchronization software yet. I hope to create a link without a screenshot to synchronize the clipboard. Scrcpy is really convenient if there is no such bug

rom1v added a commit that referenced this issue Nov 11, 2023
Clipboard synchronization requires SDL_INIT_VIDEO, so always initialize
SDL with the video subsystem, even if --no-video or --no-video-playback
is passed.

Fixes #4418 <#4418>
@rom1v
Copy link
Collaborator

rom1v commented Nov 11, 2023

Thank you for your report.

Fixed by 3d46c99 5e59ed3.

@rom1v rom1v closed this as completed Nov 11, 2023
rom1v added a commit that referenced this issue Nov 11, 2023
Clipboard synchronization requires SDL_INIT_VIDEO, so always initialize
the video subsystem, even if --no-video or --no-video-playback is
passed.

Refs caf594c
Fixes #4418 <#4418>
rom1v added a commit that referenced this issue Nov 29, 2023
The SDL video subsystem is required for video playback and clipboard
synchronization.

If neither is used, it is not necessary to initialize it.

Refs 5e59ed3
Refs 110b3a1
Refs #4418 <#4418>
Refs #4477 <#4477>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants