How to use your Android phone as a webcam on Windows with UVC

  • Android 14 introduces the DeviceAsWebcam service, which allows you to use your mobile phone as a standard UVC webcam via USB on systems like Windows or Linux.
  • Windows 11 can leverage Android phones as a connected camera via Mobile Link, creating a virtual camera without the need for cables.
  • Some manufacturers offer a native "Webcam" mode in the USB preferences, while apps like DroidCam cover devices without official support.
  • Proper UVC configuration, host compatibility, and power consumption control are key to a stable video call experience.

Use an Android phone as a webcam on Windows with UVC

If you are tired of the cheap webcam on your laptop Or perhaps your desktop PC doesn't even have a camera; your Android phone can get you out of a bind, and not just as a temporary fix, but as a solution with much better image quality. Smartphone cameras have advanced tremendously, while the webcams integrated into many computers remain stuck in the past. If you want a practical guide, see how Turn your Android phone into a webcam for Windows 11.

The interesting thing is that nowadays you have several ways to Use your Android phone as a webcam on WindowsFrom native Android 14 and Google Pixel features based on UVC, to the new integration of Windows 11 with Mobile LinkFrom more traditional methods using third-party apps like DroidCam or IP Webcam, there are options that work via USB, Wi-Fi, and even without installing anything on your PC. So there's a solution for almost any mobile phone and computer combination.

What is UVC and why does it matter when using your mobile phone as a webcam?

When we talk about using a mobile phone as a "real" webcam, we mean that the phone advertises itself to the computer as a webcam. UVC device (USB Video Class)It uses the same standard as regular USB webcams, so Windows, Linux, macOS, and ChromeOS detect it as just another camera without installing any unusual drivers. For a more detailed tutorial on how Turn Android into a webcamConsult that article.

In Android 14 and later, Google added official support for using the smartphone as a USB webcamInternally, this is managed by the service DeviceAsWebcam, which is responsible for converting the camera signal into a UVC video stream accessible from the phone's USB port.

This system is not just a visual trick: the Android device actually presents itself as a standard webcam to the host, creating video nodes in /dev/video* (on Linux) and exposing formats and resolutions through the UVC driver, just like any dedicated USB camera would.

The beauty of UVC is that, if the mobile phone manufacturer has activated everything necessary, you will be able to Plug the phone into a Windows PC via USB (or other compatible system) and select the mobile camera directly from Zoom, Teams, Google Meet, OBS, etc., without having to install additional software.

To make this possible, the kernel used by Android 14 on compatible devices includes the UVC gadget driver It is already enabled in the generic kernel image (GKI). Furthermore, the system mounts the UVC function via ConfigFS, advertising to the host the supported video formats (uncompressed MJPEG or YUYV), resolutions, and frame rates.

Android 14 and the DeviceAsWebcam service: how it works inside

Setting up an Android mobile phone as a UVC webcam

Starting with Android 14-QPR1, the operating system officially incorporates the feature of use the device as a USB webcamThis function is controlled by the service DeviceAsWebcam, which not only handles the technical aspects, but also the user experience and the preview.

When the user activates webcam mode in the Android USB preferencesThe Settings app tells the system, through UsbManager, which activates the function FUNCTION_UVCThe process follows several internal steps:

The process continues several internal steps:

  • The system server (system_server) requests the USB gadget HAL to enable the UVC function by setUsbFunctions.
  • The gadget's HAL configures the UVC controller using ConfigFS, mounting the function uvc.0 just as I would with MTP or ADB.
  • When the HAL confirms that everything is ready, the system emits a transmission that the DeviceAsWebcam service captures to start the camera logic.
  • The UVC device driver starts sending video when the host (e.g., a Windows PC) negotiates the configuration and activates streaming through the video nodes (/dev/video*).

The service DeviceAsWebcam includes a preview activity (DeviceAsWebcamPreview.java) that allows the user View and adjust the image before it reaches the PCFrom that preview you can:

  • Check how the webcam signal looks on the host before connecting to the video calling app.
  • Choosing whether you want to transmit with the front or rear camera.
  • Control the zoom level with a slider or button controls.
  • Tap on an area of ​​the image to focus or blur a specific point.

This preview respects standard Android accessibility features, such as TalkBack, Enhanced Accessibility, and Voice Access, so anyone can manage the mobile webcam without complications.

In the kernel section, GKI already includes the UVC gadget controller enabled by defaultHowever, Google warns that there were significant stability issues in early 2024. These issues were fixed in AOSP and have spread to the various GKI development branches; if a manufacturer uses a version without these patches, they must integrate the fixes to avoid crashes and transmission failures.

The gadget's HAL also updates its AIDL interface to include the UVC function within GadgetFunctionIn practice, when UVC is enabled, the HAL creates the corresponding symbolic link in ConfigFS (for example, linkFunction("uvc.0")) and ensures that the combinations of VID/PID that the device advertises as appropriate for standard USB webcam behavior.

Configure formats, resolutions, and performance with UVC

Android mobile camera used as a webcam on Windows

In order for the host (your Windows PC, for example) to know what the mobile phone's camera can do, the system must Configure ConfigFS correctly with UVC parametersThere you define the supported formats (uncompressed MJPEG and YUYV), image sizes, maximum frame size and frames per second.

For example, an initialization script can create a UVC function with an MJPEG stream to 1080p and 30 FPSIn ConfigFS, values ​​such as the video width and height (1920×1080), the maximum frame buffer size, and the default frame interval (in nanoseconds) are written, also indicating which refresh rates are valid for each resolution.

The bandwidth limit must be taken into account USB 2.0 (480 Mbps, about 60 MB/s)If you want to stream at 30 FPS, the maximum size of each frame should be around 2 MB, and if you're aiming for 60 FPS, you should aim for around 1 MB per frame to avoid bottlenecks.

With these restriccionesSeveral scenarios are recommended:

  • To uncompressed video (YUYV)At 30 FPS, it's reasonable to limit yourself to 720p, since that's 2 bytes per pixel and the data flow increases rapidly.
  • To MJPEG compressedAssuming an approximate 1:10 compression from YUV, USB 2.0 can easily handle a 4K stream (approx. 1,18 MB per frame), although in practice many apps operate at 1080p or 720p.

Google recommends that, when advertising webcam capabilities, both the rear main camera as well as the front camera They must support all published resolutions and FPS. This is important because the preview interface allows for on-the-fly camera switching, and the system must ensure there are no surprises when making the switch.

The most practical solutions for most video calling applications on the host are 480p (640 × 480), 720p (1280 × 720) y 1080p (1920 × 1080)Similarly, it is suggested to ensure at least a stable 30 FPS on all of them for a smooth experience in Zoom, Meet, or Teams.

To enable the webcam function in an Android build, the manufacturer must set the property ro.usb.uvc.enabled=true in the File device.mkDoing so will add the “Webcam” option to the system's USB preferences. Alternatively, you can force UVC mode from ADB using the command adb shell svc usb setFunctions uvcwhich is useful for testing and validation.

Regarding power consumption, the camera may be running for several hours a day, so it is crucial to monitor the energy and temperatureTo optimize, the DeviceAsWebcam service uses the track STREAM_USE_CASE_VIDEO_CALL, designed specifically for video call scenarios and which allows the camera HAL to adjust resources efficiently.

Using a Google Pixel as a UVC webcam on Windows

Google was one of the first to take advantage of native UVC support in Android 14 with its own Pixel phones. If you have a compatible Pixel, you can use it as standard webcam with a simple USB cable that accepts data, without additional installations on the computer.

The process is very straightforward: connect the Pixel to the PC with the USB cable, swipe down the notification bar on the phone, and tap on “Charging device via USB”Within the “Use USB for” setting, select the option “Webcam”At that point, the phone begins to advertise itself as a UVC device to the host.

On Windows, the Pixel behaves like a a regular webcamYou can go to the settings of your favorite application (Skype, Teams, Zoom, OBS, etc.) and choose the camera that the device exposes; you don't need to install proprietary clients or third-party drivers.

Additionally, the Pixel lets you adjust the webcam directly from the phone by tapping the "Webcam" notification at the top of the screen. There you can preview what is being sentSwitch from front to rear camera, adjust the framing, and make sure everything looks the way you want before entering an important meeting.

While the Pixel is in webcam mode you can still use the phone normally: moving through other apps, locking the screen, etc. If any application on the mobile itself tries to use the camera (for example, when receiving a video call), the UVC transmission is temporarily stopped and displays a locked camera icon on the host, resuming again when finished.

One curious detail is that, for now, the Pixel devices cannot be used as a UVC host with other Pixels. That is, you can't plug one Pixel into another Pixel and use it as a webcam because Google phones, at the moment, don't support external UVC cameras of this type.

Use any Android device as a webcam on Windows 11 with Mobile Link

If your phone isn't a Pixel, you can still use it as a webcam on Windows thanks to the Windows 11 integration with Mobile Link / Windows LinkMicrosoft is rolling out this functionality to Android 9.0 and higher mobile devices, turning them into wireless cameras for PC video calls.

The main requirement is to have a fairly recent version of Windows 11 Insider, around Build 22635.3212 or later versions, because this feature was first tested in the Insider program's beta channels. Additionally, it's essential to keep the app updated. Mobile Link on Windows from the Microsoft Store and the Link to Windows app on your mobile device to version 1.24012 or higher.

On many mobile phones (such as some OnePlus or Samsung models) the Link to Windows app is already included. pre-installed on AndroidAlthough you can also download it from Google Play. It's highly recommended to join the app's beta program on the Play Store to receive the latest versions, as the camera feature is usually rolled out to beta users first.

Pairing is based on the PC and mobile sharing the same Microsoft accountOn your phone, sign in to Link to Windows with that account, and on your computer, open Link Mobile. The desktop app will display a QR code that you must scan with your phone; if the Link to Windows app doesn't have a built-in scanner, you can use any QR code reader app (like Google Lens) that opens the link in your browser to complete the process.

After linking, Mobile Link will display your information on your PC. Messages, calls, shortcuts to Android apps and a lot of interesting features, but the webcam part is not configured from this window, but from the general Windows settings.

Activate and use the “Virtual Windows Camera” with your mobile phone

To enable the use of your mobile phone as a connected camera in Windows 11, you need to go to Settings > Bluetooth & devices and enable the option that allows your PC to access your mobile devices. There you'll see the phones that are linked to your Microsoft account.

A switch will appear next to your smartphone. Use your mobile phone as a connected camera (and, in some cases, another to receive notifications when new photos are taken). The important thing for video calls is to make sure that the "use as connected camera" option is enabled.

From that moment on, Windows creates a “Virtual Windows Camera” This is based on the video feed from your mobile device. In video conferencing apps where you can choose a camera device (Zoom, Teams, Google Meet in a browser, etc.), there will be an additional entry that refers to this virtual camera.

If your laptop already has a built-in webcam, you'll have to go to the video call application settings and manually select the Windows virtual camera as the main source, replacing the low-quality camera that comes standard with the equipment.

When a video calling app starts using the virtual camera, the phone unlocks and displays a simple panel on the screen, from which you can switch between front and rear camera or temporarily pause video streaming. All of this is done wirelessly, as communication with the PC occurs through the mobile device's connection to Windows (Bluetooth, WiFi, etc.), without the need for USB cables.

The experience is surprisingly good: the delay is usually very low And the image quality is several steps ahead of a typical laptop webcam. Furthermore, since it doesn't rely on a fixed physical mount, you can position your phone wherever you like: on top of your monitor, on a tripod, to the side of a table, or even use a flexible arm to achieve the perfect angle.

Native USB option on some Android devices: “Webcam” mode

Aside from the Pixel and its integration with Windows 11, certain manufacturers have added a Direct "Webcam" option in USB preferences, relying precisely on the UVC standard and the new features of Android 14.

It works very similarly to the Pixel: you connect the phone to the computer with a USB cable that transmits data (Use a USB-C cable that supports data), the notification “Charging device via USB” appears on your Android, and tapping on that notification opens the “Use USB for” menu.

In that menu, if the manufacturer has implemented it, you will see the option “Webcam” Among the classic modes (file transfer, connection sharing, MIDI, upload only, etc.). If you choose this mode, the phone behaves like a standard UVC webcam to the PC.

If your phone doesn't show that option, it could mean two things: either This device does not yet support this feature Even if you have Android 14, this could be because the manufacturer hasn't enabled UVC, or the PC's USB port isn't correctly negotiating the device class. On most modern computers with USB 3.0 or later, this shouldn't cause problems, as almost all of them support UVC by default.

On devices that do offer webcam mode, selecting it usually brings up a panel for Configure video quality, zoom, or orientation from the camera before sending the signal to the computer. From there you can control the experience without relying on complicated settings on the PC.

Once the mode is activated, all you have to do is open your favorite video conferencing or streaming app on Windows and choose the new one. mobile-based UVC webcam as a video source (and audio source, if the system exposes it). This works not only with installed applications, but also with web services like Google Meet in the browser.

Alternative with third-party apps: DroidCam, IP Webcam and others

If your phone or PC doesn't support the native options (neither Direct UVC nor the Windows 11 virtual camera), you can always resort to third-party apps that turn your mobile phone's camera into a webcamThese are tried-and-tested solutions that have saved many people in important meetings.

One of the most popular tools is DroidCamAvailable for Android and iOS, with clients for Windows and Linux, it doesn't require UVC software because it installs its own driver on the computer, which presents itself to applications as a virtual webcam. The app can work via both Wi-Fi and USB, and allows you to send video at fairly decent resolutions (up to 1080p in the paid version).

The usage flow is simple: you install the app on your mobile from Google Play, you give it access permissions to camera, microphone and WiFi networkThen you install the client on your computer from the official Dev47Apps website. On Windows, the installer will ask you to add an additional sound driver to be able to use the mobile phone's microphone as well.

On your mobile device, when you open DroidCam, you'll see information such as your Wi-Fi IP address and connection port (the "Wi-Fi IP" field is usually the most important). On your PC, open the client, select the connection mode (usually Wi-Fi), and enter the mobile IP address and port You then select whether you want to transmit video only or audio as well. When you press "Start," the phone's camera will activate and begin sending the signal to the computer.

On Linux, DroidCam also supports WiFi or USB connection using ADB (see guide for screen control with scrcpyThe installation there involves downloading a ZIP package and compiling the kernel module. v4l2loopback-dc (which creates the virtual video device) and register the driver so that it is available as /dev/videoXOnce installed, you run droidcamYou enter the IP address and port, and the mobile phone camera appears as "DroidCam" in OBS, Skype, Teams, and other applications.

Another interesting app is EpocCamFocused primarily on the iOS ecosystem, this app allows you to use your iPhone as a camera on both macOS and Windows. It offers a free version with resolution limitations and a paid version with advanced features (manual focus, HDR, 1080p, etc.). While not Android, it's useful if you have a Windows PC and an iPhone at home.

If you want something very basic and your computer doesn't support the methods above, you can use options like IP WebcamThese apps turn your mobile phone into an IP camera accessible via a web browser or certain applications. It's not as seamless as UVC or DroidCam, but it can be a lifesaver in environments where you can't install drivers.

Requirements, compatibility, and common problems

To navigate smoothly between all these alternatives, it's helpful to have a clear understanding of the requirements of each methodFor native UVC with Android 14 and DeviceAsWebcam, you need a mobile phone with that version (or higher) and the manufacturer must have enabled the feature. ro.usb.uvc.enabled and the corresponding function in the gadget's HAL. If the phone does not offer the "Webcam" option in the USB preferences under Settings, support is probably not yet available.

For Windows 11 integration with Mobile Link, the PC must be running a Windows 11 Insider build or a recent stable version where the feature has already been rolled out, and your mobile device must be running at least Android 9.0 with the Link to Windows app updated (even better if you're on the beta version). Additionally, it's important that both devices are associated with the same Microsoft account.

If you opt for third-party apps, the basic requirement is that the PC can install the corresponding driver or client, and that the mobile device can connect via WiFi on the same network that computer, or via USB with debugging/ADB in the case of wired connections. In highly restricted corporate networks, these connections can cause problems if the ports or protocols are blocked.

Regarding known problems, UVC support in Android itself has had occasions to show flickering or damaged frames due to errors in the gadget driver, which have been fixed in recent GKI branches. Google also warns that some Android devices in webcam mode do not work properly with USB 3.0+ cables when the host is macOS, due to a bug in Apple's UVC driver.

Finally, don't forget that using your phone as a webcam for several hours a day can cause it to overheat or drain quickly. That's why it's crucial that the system uses specific video call optimizations and, if necessary, resort to secondary physical cameras with lower energy consumption (although this sacrifices quality and may create a somewhat confusing experience for the user).

With all these pieces on the table, it's clear that today you can transform Turn your Android phone into a webcam for Windows with ease. functionalThis applies both to native solutions based on UVC and the Windows 11 virtual camera, as well as to proven third-party applications. Choosing one method or another will depend on your Android and Windows versions, the support added by your smartphone manufacturer, and whether you prefer a direct USB connection or a more flexible Wi-Fi connection. However, in almost any scenario, there's a combination that will allow you to enjoy a picture quality far superior to that of the typical webcam integrated into laptops.

How to use an Android phone as a webcam for a Windows 11 PC
Related article:
Turn your Android phone into a webcam for Windows 11