ICEfaces
  1. ICEfaces
  2. ICE-10447

mobi:camera - add HTML5 getUserMedia Support

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major 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.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #44110 Tue Feb 24 10:26:33 MST 2015 philip.breau ICE-10447 mobi:camera add getUserMedia support
        - change file and canvas uploads to use FormData and submit to Auxillary upload post url.
        Files Changed
        Commit graph 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 ICE-10447 mobi:camera add getUserMedia support
        - 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
        Commit graph MODIFY /icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.camera/camera.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #44099 Fri Feb 20 12:38:02 MST 2015 philip.breau ICE-10447 mobi:camera add getUserMedia support
        - ensure thumbnail dataURL is small
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.camera/camera.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #44093 Thu Feb 19 12:36:03 MST 2015 philip.breau ICE-10447 mobi:camera add getUserMedia support
        - remove jpeg encoder
        - scale image files larger than 1mb
        Files Changed
        Commit graph DEL /icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.camera/jpeg_encoder_basic.js
        Commit graph MODIFY /icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.camera/camera.js
        Commit graph MODIFY /icefaces4/trunk/icefaces/mobi/component/src/org/icefaces/mobi/component/camera/CameraMeta.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #44040 Tue Feb 10 10:52:55 MST 2015 philip.breau ICE-10447 mobi:camera add getUserMedia support
        - fix regression with thumbnailRenderer, only render thumbnail when camera and the data attr is available
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/mobi/component/src/org/icefaces/mobi/component/thumbnail/ThumbnailRenderer.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #44039 Tue Feb 10 10:43:10 MST 2015 philip.breau ICE-10447 mobi:camera add getUserMedia support
        - 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
        Commit graph MODIFY /icefaces4/trunk/icefaces/mobi/component/src/org/icefaces/mobi/util/MobiJSFUtils.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #44038 Tue Feb 10 10:27:28 MST 2015 philip.breau ICE-10447 mobi:camera add getUserMedia support
        - 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
        Commit graph MODIFY /icefaces4/trunk/icefaces/mobi/component/src/org/icefaces/mobi/util/MobiJSFUtils.java
        Commit graph ADD /icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.camera/jpeg_encoder_basic.js
        Commit graph MODIFY /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/webapp/showcase-mobile.xhtml
        Commit graph MODIFY /icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.camera/camera.js
        Commit graph MODIFY /icefaces4/trunk/icefaces/mobi/component/src/org/icefaces/mobi/component/camera/CameraMeta.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #44033 Mon Feb 09 16:55:54 MST 2015 philip.breau ICE-10447 mobi:camera add getUserMedia support
        - fix captureLabel not being set on Firefox
        Files Changed
        Commit graph 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 ICE-10447 mobi:camera add getUserMedia support
        - use FileReader to extract image data from file and populate thumbnail and hidden input
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.camera/camera.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #44021 Fri Feb 06 06:37:43 MST 2015 philip.breau ICE-10447 mobi:camera add getUserMedia support
        - double check navigator.getUserMedia not undefined for Safari
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/mobi/component/build.xml
        Commit graph MODIFY /icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.datespinner/datespinner.css
        Commit graph MODIFY /icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.camera/camera.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #43951 Mon Jan 26 08:34:18 MST 2015 philip.breau ICE-10447 mobi:camera add getUserMedia support
        Files Changed
        Commit graph ADD /icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.camera/camera.css
        Commit graph MODIFY /icefaces4/trunk/icefaces/mobi/component/src/org/icefaces/mobi/util/MobiJSFUtils.java
        Commit graph ADD /icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.camera
        Commit graph MODIFY /icefaces4/trunk/icefaces/mobi/component/src/org/icefaces/mobi/component/camera/CameraRenderer.java
        Commit graph ADD /icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.camera/camera.js
        Commit graph MODIFY /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/mobi/camera/camera-example.xhtml
        Commit graph MODIFY /icefaces4/trunk/icefaces/mobi/component/src/org/icefaces/mobi/component/thumbnail/ThumbnailRenderer.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/mobi/component/src/org/icefaces/mobi/component/camera/CameraMeta.java

          People

          • Assignee:
            Philip Breau
            Reporter:
            Philip Breau
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: