Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 4.1
-
Component/s: MOBI-Components
-
Labels:None
-
Environment:ICEfaces 4.x mobi components
-
Assignee Priority:P2
Description
This JIRA is to modify the mobi:camera, mobi:camcorder, mobi:microphone components to detect if the HTML5 "Navigator.mediaDevices.getUserMedia()" APIs are available in the browser, and if so, use the HTML5 camera or microphone instead of the BridgeIt app.
If the APIs are not available, then BridgeIt should be detected and used if available.
If the APIs are not available, then BridgeIt should be detected and used if available.
r49552: modified mobi:camera to first detect if the getUserMedia API is available and launch the HTML5 camera, otherwise attempt to use Bridgeit, if not installed, then display the fallback file upload input; also added behaviour of hiding the toggle button when a picture is taken and showing it again when pressing the redo button; added workaround for Android devices to tap on the still image to start the camera video stream; and added the 'facingMode' attribute to specify to start with the 'rear' or 'front' camera
Testing notes: please test this on all supported browsers and devices. Note that the file upload fallback might take 10 seconds to show, because it's triggered by an onfailure callback on the bridgeit javascrpt, which explicity sets a 10-second timeout. This is the way it has always been.