Jump to content

UniGUI OpenSource - Paypal Buttons, Webcam, VideoPanel, mxGraph, BarcodeScanner, Qz.io


Recommended Posts

  • 2 months later...

Hello!

I'm using the UnimBarcodescanner component. It works great.

I use "UnimBarcodeScanner1.CameraList;" to obtain the available cameras.

Unfortunately the list of available cameras isn't correct:

1. Microsoft Surface Pro 7: all is ok. There is a front and a rear camera available.

2. iPhone 11: Here's only the front camera available.

3. Android mobile: here are 5 (!) rear cameras available but no front camera.

Thanks in advance

Link to comment
Share on other sites

On 11/4/2021 at 12:49 PM, likemike said:

Hello!

I'm using the UnimBarcodescanner component. It works great.

I use "UnimBarcodeScanner1.CameraList;" to obtain the available cameras.

Unfortunately the list of available cameras isn't correct:

1. Microsoft Surface Pro 7: all is ok. There is a front and a rear camera available.

2. iPhone 11: Here's only the front camera available.

3. Android mobile: here are 5 (!) rear cameras available but no front camera.

Thanks in advance

I would like to know, if I'm the only one with this problem? Maybe it's a problem with some specific mobiles or Android-version...

Link to comment
Share on other sites

  • 1 month later...

Sorry for pushing, but the problem with UnimBarcodeScanner1.CameraList is still actual.

The UnimBarcodeScanner1.CameraList; doesn't load all video devices on Android devices (only the front cameras are listed).

Another problem: on iOS-devices the 1st try gives only "Video device 1 =", while the 2nd try loads front and rear camera correctly.

Maybe there is a new version of ZXING.min.js?

Link to comment
Share on other sites

6 hours ago, likemike said:

Sorry for pushing, but the problem with UnimBarcodeScanner1.CameraList is still actual.

The UnimBarcodeScanner1.CameraList; doesn't load all video devices on Android devices (only the front cameras are listed).

Another problem: on iOS-devices the 1st try gives only "Video device 1 =", while the 2nd try loads front and rear camera correctly.

Maybe there is a new version of ZXING.min.js?

Hi

Did you try with new version of ZXING?

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
4 hours ago, NNPaulo said:

Hi Hayri Aslan; Is possible for you, create a TUnimWebCam; a WebCam component, but for mobile?

Thanks in advance;

Hello

Unigui natively support mobile webcam.

Add a UnimFileUploadButton to form and set capture to camera.

Also you can use below trick.

 

Link to comment
Share on other sites

On 1/3/2022 at 11:27 AM, Mariana Gatolin said:

Olá tudo bem?

Queria utilizar o qz serial para ler as informações da porta COM. O Componente tem esta opção?

Não consigo baixar o arquivo, está indisponível.

Podem me ajudar por favor?

Obrigada

Take a look on it and get away from QZ which is paid

https://github.com/imTigger/webapp-hardware-bridge

  • Like 1
Link to comment
Share on other sites

  • 3 months later...
Just now, emin said:

Hi Hayri

When I run the application locally, it finds the cameras. But when I install it on IIS on the server the cameras are not listed. You can access the application from the link below.

https://destek.mpsyazilim.com/webcam/

 

 

Hello Emin

Please add webcam.js into files folder

https://destek.mpsyazilim.com/webcam/files/webcam.js

Link to comment
Share on other sites

Can you replace below code in uniwebcam.pas, line 140

 

  UniSession.AddJS('navigator.mediaDevices.getUserMedia({ audio: true, video: true }).then(function(stream) {'+
                   'if (typeof navigator.mediaDevices.enumerateDevices != "undefined") { '+
                   '     navigator.mediaDevices.enumerateDevices() '+
                   '         .then(function(devices) { '+
                   '             var cameras = devices.filter(function(device) { '+
                   '                 return device.kind === "videoinput"; '+
                   '             }); '+
                   '             var uniguiCameras = {}; '+
                   '             uniguiCameras.count = cameras.length; '+
                   '             cameras.forEach(function(camera, i) { '+
                   '                 uniguiCameras["label" + i] = camera.label; '+
                   '                 uniguiCameras["deviceId" + i] = camera.deviceId; '+
                   '             }); '+
                   '             ajaxRequest('+JSName+', "cameras", uniguiCameras); '+
                   '         }); '+
                   ' } }))');

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...