There is no prompt to select USB device using navigator.usb.requestDevice() on Zebra Enterprise Browser - usb

I am trying to use Web USB API to communicate with USB relay. The web page is running on Zebra device. It is working fine in Chromium. I am getting a prompt to select USB device.
device = await navigator.usb.requestDevice({ filters: [{ vendorId: config.VENDOR_ID, productId: config.PRODUCT_ID }] });
The Zebra device comes with Enterprise Browser. It is similar to Chromium. But I do not get the prompt to select USB device when running the same web page in Enterprise Browser.
Does anyone know how to get this working in the Enterprise Browser?
Or is there any way that navigator.usb.requestDevice() returns the device without user's action?
Thank you.

I recommend reaching out to Zebra's support channels with questions about their browser. Even if it is based on Chromium it may not include or have disabled components of the WebUSB implementation.
The WebUsbAllowDevicesForUrls enterprise policy allows an administrator to pre-grant permission for a site to access USB devices but that depends on the browser having the complete WebUSB and enterprise policy engine from the upstream Chromium project so there's no guarantee that it will work without reaching out to Zebra.
Zebra Enterprise Browser may be based on Android WebView instead of Chromium. While Android WebView is itself based on Chromium it doesn't include the code necessary to support the WebUSB API. Adding support for WebUSB to Android WebView is tracked by Chromium's issue 933055.

Related

Stream video from a stand alone desktop application(not browser) to a remote desktop application(not browser)

I'm trying to build a live video streaming application from a usb camera to an application running on a remote desktop. I've researched protocols like RTMP, RTSP, WebRTC. According to my understanding I can't use webRTC since it's only compatible in the browser and I'm not building my application for a browser here. Please help me choose the right protocol and also the media server.
You can, and many applications do, use WebRTC outside the browser. WebRTC implementations are available for many different platforms including iOS, Android and embedded systems.
You can even use Headless Chrome if you want to use the Chrome APIs without the visual parts of the browser.

Using Java to communicate to a USB device from browser

We have a java web application and now we have a new request: the client wants to communicate with their USB device using our application. They plug the device into their PCs, open a page of our web application and the page will communicate with the device to get some input. Communication here means reading some input from the device. This should be support on every script supported browser. Can someone give me a guide or a link that tells me how to do it? Thank you for reading.
You can use the WebUSB API to communicate with USB devices in the Web app. However, WebUSB is only implemented in Chromium.

HoloLens device portal not available

When connecting HoloLens via USB to my computer, the device portal is still not available after setting it up as explained in the install tools page.
All I get in the browser 127.0.0.1:10080 is the generic "unable to connect" page.
Is there any way to know what is failing? What could I check? Any tip will be appreciated!
EDIT: browsers used: Edge, Firefox and Chrome.
EDIT2: Hololens development mode is on.
Connecting over USB requires the PC be running IPoverUSB, which is installed with the Windows 10 SDK. You can verify that it's running by checking the Services tab of Task Manager for IpOverUsbSvc.
FYI, another resolution to this issue may be the USB port you are using.
I initially was using a USB 3 port (which I've used to flash my HoloLens many times) and had the same issues.
On a whim, I switched to an older USB2 port and it's working perfectly now. SO try different USB ports if you are having this issue.

Interact with USB storage device from web page directly or using communication to native applications

I already had an Java application that is downloaded as part of java applets from the web page, that can interact with the USB Storage device where it need to save and retrieve data from the device.
Since the chrome has stopped supporting out of sandbox running applets, I need to develop some new technique to interact with the USB Storage Device from my web page. My application architect does not want to achieve same using JNLP which is one options that I have learnt by reading some articles.
Now I would like you peoples to help me on build some applications, so that I can use the same in my webpage to access USB storage device(Pen drive) independent of OS (Operating System) and Independent of Browser(Cross browser support-mostly should work on IE, firefox , chrome and safari).
I am ok with application build on native (OS dependent), but should be there a way to communicate with that application from any browsers installed over that machine.

How can I debug Windows Phone 8 App on Remote Server?

Our Projects(Code/Design,etc) in remote server,They have develop windows phone scenario,such as : visual studio 2012/2013,windows phone sdk installed etc..
i know debug app must be in vs2012/2013,
but,if i want to debug app on remote server and how can connect device ?
ps:
1、Use the same network.
2、All code in the remote server.
If you want to do it programmaticaly:
Microsoft has managed APIs that allow you to install and run XAPs on either hardware device or simulator. They are implemented in 3 DLLs: Microsoft.Smartdevice.Connectivity.dll, Microsoft.Smartdevice.Connectivity.Interface.dll and Microsoft.Smartdevice.MultiTargeting.Connectivity.dll - you should be able to google usage examples.
Unfortunately, there's no APIs for remote debugging.
If you want to do it manually:
You can use remote desktop + RemoteFX USB Redirection.
Or you can use specialized hardware, such as "Conversions Technology USB Extender Over IP" or "StarTech USB1000IP".