Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: EE-4.0.0.GA
-
Component/s: MOBI-Components
-
Labels:None
-
Environment:ICEmobile EE 1.3.1
-
Assignee Priority:P2
-
Affects:Compatibility/Configuration
Description
Enhancement of the ICEmobile Camera component with HTML5 getUserMedia support
The Camera component will dynamically render JavaScript code for an HTML5 fallback mode when BridgeIt Native utility app is not available or not present
The HTML5 fallback mode will do client-side detection of the getUserMedia API
If the API is not present, the component will render an input file element as before
If the API is present, the component will render a button to trigger the getUserMedia API and a simulated camera capture popup
Simulated Camera Capture popup
Will show the user the video capture stream from within the web application
Will provide a capture button to take a photo
Will provide a thumbnail of the captured image using an HTML5 canvas element
Will allow the user to select the current image, or take another photo
If possible, the image data may be stored in local storage until the form is posted
The selected image will be serialized into the form so that it can be uploaded on the next form post
The server-side mobi:camera component API will remain unchanged, if possible.
The Camera component will dynamically render JavaScript code for an HTML5 fallback mode when BridgeIt Native utility app is not available or not present
The HTML5 fallback mode will do client-side detection of the getUserMedia API
If the API is not present, the component will render an input file element as before
If the API is present, the component will render a button to trigger the getUserMedia API and a simulated camera capture popup
Simulated Camera Capture popup
Will show the user the video capture stream from within the web application
Will provide a capture button to take a photo
Will provide a thumbnail of the captured image using an HTML5 canvas element
Will allow the user to select the current image, or take another photo
If possible, the image data may be stored in local storage until the form is posted
The selected image will be serialized into the form so that it can be uploaded on the next form post
The server-side mobi:camera component API will remain unchanged, if possible.
Activity
Ken Fyten
created issue -
Ken Fyten
made changes -
Field | Original Value | New Value |
---|---|---|
Project | ICEmobile [ 10060 ] | ICEfaces [ 10021 ] |
Key |
|
|
Issue Type | New Feature [ 2 ] | Improvement [ 4 ] |
Affects | Compatibility/Configuration [ 10002 ] | |
Assignee Priority | P2 [ 10011 ] | |
Fix Version/s | EE-4.0.0.GA [ 11171 ] | |
Fix Version/s | EE 1.3.1.GA_P02 [ 11970 ] | |
Component/s | MOBI-Components [ 10270 ] | |
Component/s | Faces [ 10062 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #43951 | Mon Jan 26 08:34:18 MST 2015 | philip.breau | |
Files Changed | ||||
ADD
/icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.camera/camera.css
MODIFY /icefaces4/trunk/icefaces/mobi/component/src/org/icefaces/mobi/util/MobiJSFUtils.java ADD /icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.camera MODIFY /icefaces4/trunk/icefaces/mobi/component/src/org/icefaces/mobi/component/camera/CameraRenderer.java ADD /icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.camera/camera.js MODIFY /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/mobi/camera/camera-example.xhtml MODIFY /icefaces4/trunk/icefaces/mobi/component/src/org/icefaces/mobi/component/thumbnail/ThumbnailRenderer.java MODIFY /icefaces4/trunk/icefaces/mobi/component/src/org/icefaces/mobi/component/camera/CameraMeta.java |
Ken Fyten
made changes -
Attachment | Screen Shot 2015-02-04 at 11.13.46 AM.png [ 18183 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #44021 | Fri Feb 06 06:37:43 MST 2015 | philip.breau | - double check navigator.getUserMedia not undefined for Safari |
Files Changed | ||||
MODIFY
/icefaces4/trunk/icefaces/mobi/component/build.xml
MODIFY /icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.datespinner/datespinner.css MODIFY /icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.camera/camera.js |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #44022 | Fri Feb 06 08:57:37 MST 2015 | philip.breau | - use FileReader to extract image data from file and populate thumbnail and hidden input |
Files Changed | ||||
MODIFY
/icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.camera/camera.js
|
Philip Breau
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Resolution | Fixed [ 1 ] | |
Status | Resolved [ 5 ] | Reopened [ 4 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #44033 | Mon Feb 09 16:55:54 MST 2015 | philip.breau | - fix captureLabel not being set on Firefox |
Files Changed | ||||
MODIFY
/icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.camera/camera.js
|
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #44038 | Tue Feb 10 10:27:28 MST 2015 | philip.breau | - add client-side JPEGEncoder for image file processing - a sliding scale of image resolution will be used for images that exceed 50k - note that form posts exceeding certain values may still be rejected according to the maximum allowable post size of the server, for Tomcat set the connector maxPostSize accordingly, or disable it with a value of 0. |
Files Changed | ||||
MODIFY
/icefaces4/trunk/icefaces/mobi/component/src/org/icefaces/mobi/util/MobiJSFUtils.java
ADD /icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.camera/jpeg_encoder_basic.js MODIFY /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/webapp/showcase-mobile.xhtml MODIFY /icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.camera/camera.js MODIFY /icefaces4/trunk/icefaces/mobi/component/src/org/icefaces/mobi/component/camera/CameraMeta.java |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #44039 | Tue Feb 10 10:43:10 MST 2015 | philip.breau | - add client-side JPEGEncoder for image file processing - a sliding scale of image resolution will be used for images that exceed 50k - note that form posts exceeding certain values may still be rejected according to the maximum allowable post size of the server, for Tomcat set the connector maxPostSize accordingly, or disable it with a value of 0. |
Files Changed | ||||
MODIFY
/icefaces4/trunk/icefaces/mobi/component/src/org/icefaces/mobi/util/MobiJSFUtils.java
|
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #44040 | Tue Feb 10 10:52:55 MST 2015 | philip.breau | - fix regression with thumbnailRenderer, only render thumbnail when camera and the data attr is available |
Files Changed | ||||
MODIFY
/icefaces4/trunk/icefaces/mobi/component/src/org/icefaces/mobi/component/thumbnail/ThumbnailRenderer.java
|
Philip Breau
made changes -
Status | Reopened [ 4 ] | Closed [ 6 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Resolution | Fixed [ 1 ] | |
Status | Closed [ 6 ] | Reopened [ 4 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #44093 | Thu Feb 19 12:36:03 MST 2015 | philip.breau | - remove jpeg encoder - scale image files larger than 1mb |
Files Changed | ||||
DEL
/icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.camera/jpeg_encoder_basic.js
MODIFY /icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.camera/camera.js MODIFY /icefaces4/trunk/icefaces/mobi/component/src/org/icefaces/mobi/component/camera/CameraMeta.java |
Philip Breau
made changes -
Status | Reopened [ 4 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Resolution | Fixed [ 1 ] | |
Status | Resolved [ 5 ] | Reopened [ 4 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #44099 | Fri Feb 20 12:38:02 MST 2015 | philip.breau | - ensure thumbnail dataURL is small |
Files Changed | ||||
MODIFY
/icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.camera/camera.js
|
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #44100 | Fri Feb 20 18:27:12 MST 2015 | philip.breau | - fix broken bridgeit upload, a change in the function signature was losing the jsessionid, so the image could not be correctly posted to the correct session by the bridgeit utility |
Files Changed | ||||
MODIFY
/icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.camera/camera.js
|
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #44110 | Tue Feb 24 10:26:33 MST 2015 | philip.breau | - change file and canvas uploads to use FormData and submit to Auxillary upload post url. |
Files Changed | ||||
MODIFY
/icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.camera/camera.js
|
Ken Fyten
made changes -
Status | Reopened [ 4 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
IM 1.3.1 camera rendering logic (without Shim support):
Server
Client button onclick handler
Client getUserMedia image capture handler
Client image capture from canvas element
Current IF 4 Camera rendering logic:
Server
BridgeIt camera onclick handler
Proposed IF 4 Camera rendering logic:
Server
Client cameraBtnOnClick handler
cameraLaunchFailed callback