banner



How To Unmiror Web Camera In Unity

Remote debug Android devices

Published on Updated on

Remote debug live content on an Android device from your Windows, Mac, or Linux computer. This tutorial teaches you how to:

  • Prepare up your Android device for remote debugging, and notice information technology from your development machine.
  • Inspect and debug alive content on your Android device from your evolution machine.
  • Screencast content from your Android device onto a DevTools instance on your development machine.

Remote debugging diagram

Figure 1. Remote Debugging lets you inspect a folio running on an Android device from your development machine.

Footstep 1: Discover your Android device

The workflow beneath works for most users. See Troubleshooting: DevTools is not detecting the Android device for more help.

  1. Open the Developer Options screen on your Android. See Configure On-Device Programmer Options.

  2. Select Enable USB Debugging.

  3. On your evolution machine, open Chrome.

  4. Go to chrome://inspect#devices.

  5. Make certain that the Find USB devices checkbox is enabled.

    The Discover USB Devices checkbox is enabled.

    Figure 2. The Find USB Devices checkbox is enabled

  6. Connect your Android device directly to your development automobile using a USB cablevision. Your Android device may ask y'all to ostend that you trust this computer. The beginning fourth dimension you do this, you lot ordinarily see that DevTools has detected an offline device. If you encounter the model proper name of your Android device, then DevTools has successfully established the connexion to your device. Continue to Step 2.

    The Remote Target has successfully detected an offline device that is pending authorization.

    Figure 3. The Remote Target has successfully detected an offline device that is pending authorization

  7. If your device is showing up as Offline, accept the Allow USB Debugging permission prompt on your Android device.

Troubleshooting: DevTools is not detecting the Android device

Make sure that your hardware is prepare up correctly:

  • If y'all're using a USB hub, attempt connecting your Android device straight to your development machine instead.
  • Attempt unplugging the USB cable between your Android device and development machine, and then plugging it dorsum in. Do it while your Android and development machine screens are unlocked.
  • Make sure that your USB cable works. You should be able to audit files on your Android device from your development machine.

Make certain that your software is ready up correctly:

  • If your evolution auto is running Windows, effort manually installing the USB drivers for your Android device. Run into Install OEM USB Drivers.
  • Some combinations of Windows and Android devices (especially Samsung) require extra set. See Chrome DevTools Devices does not discover device when plugged in.

If y'all don't see the Permit USB Debugging prompt on your Android device try:

  • Disconnecting and then re-connecting the USB cablevision while DevTools is in focus on your development car and your Android homescreen is showing. In other words, sometimes the prompt doesn't show up when your Android or development auto screens are locked.
  • Updating the brandish settings for your Android device and development machine so that they never go to slumber.
  • Setting Android's USB mode to PTP. See Galaxy S4 does not show Qualify USB debugging dialog box.
  • Select Revoke USB Debugging Authorizations from the Programmer Options screen on your Android device to reset it to a fresh state.

If you observe a solution that is not mentioned in this department or in Chrome DevTools Devices does not notice device when plugged in, please add together an reply to that Stack Overflow question, or open an outcome in the webfundamentals repository!

Step 2: Debug content on your Android device from your evolution automobile

  1. Open Chrome on your Android device.

  2. In the chrome://inspect/#devices , y'all see your Android device's model name, followed past its series number. Below that, you lot can come across the version of Chrome that'southward running on the device, with the version number in parentheses. Each open Chrome tab gets its own department. You tin can collaborate with that tab from this section. If in that location are any apps using WebView, you lot meet a section for each of those apps, too. In Figure five there are no tabs or WebViews open.

    A connected remote device.

    Effigy 4. A continued remote device

  3. In the Open tab with url text box, enter a URL and so click Open. The page opens in a new tab on your Android device.

  4. Click Inspect side by side to the URL that you just opened. A new DevTools instance opens. The version of Chrome running on your Android device determines the version of DevTools that opens on your development car. So, if your Android device is running a very old version of Chrome, the DevTools example may expect very different than what you're used to.

More than actions: pause, focus, reload, or close a tab

Beneath the URL you tin find a menu to pause, focus, reload or close a tab.

The menu for pausing, reloading, focusing, or closing a tab.

Figure 5. The menu for pausing, reloading, focusing, or closing a tab

Inspect elements

Go to the Elements panel of your DevTools instance, and hover over an element to highlight information technology in the viewport of your Android device.

You lot can besides tap an element on your Android device screen to select it in the Elements console. Click Select Element Select Element on your DevTools example, and so tap the element on your Android device screen. Notation that Select Element is disabled later the first touch, so you need to re-enable it every time you desire to employ this feature.

Screencast your Android screen to your development machine

Click Toggle Screencast Toggle Screencast to view the content of your Android device in your DevTools instance.

You can interact with the screencast in multiple ways:

  • Clicks are translated into taps, firing proper touch events on the device.
  • Keystrokes on your computer are sent to the device.
  • To simulate a pinch gesture, hold Shift while dragging.
  • To scroll, use your trackpad or mouse wheel, or fling with your mouse arrow.

Some notes on screencasts:

  • Screencasts only display page content. Transparent portions of the screencast stand for device interfaces, such as the Chrome address bar, the Android condition bar, or the Android keyboard.
  • Screencasts negatively touch frame rates. Disable screencasting while measuring scrolls or animations to get a more accurate moving-picture show of your folio's performance.
  • If your Android device screen locks, the content of your screencast disappears. Unlock your Android device screen to automatically resume the screencast.

Last updated: Amend article

Source: https://developer.chrome.com/docs/devtools/remote-debugging/

Posted by: johnsonprowelly.blogspot.com

0 Response to "How To Unmiror Web Camera In Unity"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel