{"id":47012,"date":"2024-08-05T16:38:38","date_gmt":"2024-08-05T16:38:38","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=47012"},"modified":"2024-08-07T13:03:59","modified_gmt":"2024-08-07T13:03:59","slug":"scrcpy-mirroring-audio","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2024\/08\/scrcpy-mirroring-audio\/","title":{"rendered":"Scrcpy 2.6 Added Mirroring Android Audio Support"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-43768\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/scrcpy-icon-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/scrcpy-icon-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/scrcpy-icon-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/scrcpy-icon-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/scrcpy-icon-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/scrcpy-icon.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/p>\n<p>Scrcpy, the free open-source Android screen mirroring app, released version 2.6 (then 2.6.1 with quick fix) a few days ago.<\/p>\n<p>Scrcpy is an app works on Linux, Windows, and macOS, allowing users to remote access and control their Android screen from PC\/laptop, either wirelessly through TCP\/IP in same network or wired with USB cable.<\/p>\n<p>It uses <a href=\"https:\/\/developer.android.com\/tools\/adb\" target=\"_blank\" rel=\"noopener\">Android Debug Bridge (adb)<\/a> to communicate with Android device. Nothing needs to be installed on Android side, but it needs to enable developer mode for USB debugging option which is required by adb.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/scrcpy20.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43769\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/scrcpy20-600x341.webp\" alt=\"\" width=\"600\" height=\"341\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/scrcpy20-600x341.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/scrcpy20-300x171.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/scrcpy20-768x437.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/scrcpy20.webp 1202w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><br \/>\n<!--more--><\/p>\n<p>Scrcpy features screen mirroring (even with Android screen off), audio forwarding, video\/audio recording, copy and paste in both directions, camera mirroring. For Linux, it allows to use your Android&#8217;s camera as computer webcam.<\/p>\n<p>And, it supports OTG (On-The-Go) mode. Without adb, in this mode the computer keyboard and mouse work as they were plugged directly to the Android device.<\/p>\n<h3>New features in Scrcpy 2.6<\/h3>\n<p>Since version 2.0, the app supports <b>audio forwarding<\/b> which sends Android audio to the computer side. However, with the feature enabled, the sound was disabled in the Android device.<\/p>\n<p>The new Scrcpy 2.6 reworked the audio capture method, which now supports <b>audio mirroring<\/b>. Meaning audio source can be played in the both computer and Android at the same time.<\/p>\n<p>This is an optional feature, to enable it, simply start scrcpy with audio duplication option:<\/p>\n<pre>scrcpy --audio-source=playback --audio-dup<\/pre>\n<p>Without <code>--audio-dup<\/code>, it will work just like before that forwarding with sound disabled in Android side.<\/p>\n<p>The feature however <b>requires Android 13<\/b>, and, Android apps can opt-out, in which case they are not captured.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/08\/android-13-hero.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-47013\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/08\/android-13-hero.webp\" alt=\"\" width=\"512\" height=\"512\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/08\/android-13-hero.webp 512w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/08\/android-13-hero-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/08\/android-13-hero-250x250.webp 250w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/a><\/p>\n<p>The release also introduced <b>new set of secondary bindings<\/b> via <code>shift<\/code> + click.<\/p>\n<p>In the default mouse SDK mode, user can do right-click triggers BACK (or POWER on), middle-click triggers HOME, the 4th click triggers APP_SWITCH, and the 5th click expands the notification panel. User can also press and hold <b>Shift<\/b> then do right-click, middle-click, the 4th\/5th click to forward actions to Android.<\/p>\n<p>Both the primary and secondary bindings are configurable through <code>--mouse-bind=xxxx:xxxx<\/code> command option. See the <a href=\"https:\/\/github.com\/Genymobile\/scrcpy\/blob\/master\/doc\/mouse.md#mouse-bindings\" target=\"_blank\" rel=\"noopener\">wiki page<\/a> for details.<\/p>\n<p>Other changes include:<\/p>\n<ul>\n<li>Fix &#8220;turn screen off&#8221;, and add clipboard workaround for Honor devices<\/li>\n<li>Upgrade SDL to 2.30.5 in Windows releases<\/li>\n<li>And various bug-fixes.<\/li>\n<\/ul>\n<h3>How to Get Scrcpy<\/h3>\n<p>Scrcpy is available in Ubuntu system repositories, but old. For the latest version, just go to the project page in Github:<\/p>\n<div class=\"wp-block-buttons aligncenter\">\n<div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link has-vivid-cyan-blue-to-vivid-purple-gradient-background has-text-color has-background\" href=\"https:\/\/github.com\/Genymobile\/scrcpy#get-the-app\" target=\"_blank\" rel=\"noreferrer noopener\">Get Scrcpy<\/a><\/div>\n<\/div>\n<p>If you&#8217;re new to this app, then here&#8217;s a <a href=\"https:\/\/ubuntuhandbook.org\/index.php\/2023\/03\/scrcpy-2-0-install-android-remote-control\/\" target=\"_blank\" rel=\"noopener\">step by step tutorial<\/a> for Ubuntu users.<\/p>","protected":false},"excerpt":{"rendered":"<p>Scrcpy, the free open-source Android screen mirroring app, released version 2.6 (then 2.6.1 with quick fix) a few days ago. Scrcpy is an app works on Linux, Windows, and macOS, allowing users to remote access and control their Android screen from PC\/laptop, either wirelessly through TCP\/IP in same network or wired with USB cable. It [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":43768,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[2051,2189],"class_list":["post-47012","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news","tag-android","tag-android-remote-control"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/47012","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=47012"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/47012\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/43768"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=47012"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=47012"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=47012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}