cordova-plugin-camera icon indicating copy to clipboard operation
cordova-plugin-camera copied to clipboard

CB-12873: Add customization options for caputre button, resizing of v…

Open charlesverge opened this issue 7 years ago • 12 comments

…ideo browser resize

Reported issue https://issues.apache.org/jira/browse/CB-12873

Platforms affected

browser platform

What does this PR do?

The browser version of the camera plugin is missing

Adds options to configure
    class name for div which holds video preview
    Option to disable audio
Adds Cancel button
Resizing of video upon browser resize or orientation change
Graceful activation of file selector dialog and visibility of file input

What testing has been done on this change?

Tested on chrome and firefox

Checklist

  • [x ] Reported an issue in the JIRA database
  • [X ] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
  • [ ] Added automated test coverage as appropriate for this change.

charlesverge avatar Jun 01 '17 05:06 charlesverge

Cordova CI Build has one or more failures.

Commit - Link Dashboard - Link

140 tests run, 0 skipped, 0 failed.

cordova-qa avatar Jun 01 '17 06:06 cordova-qa

Cordova CI Build has completed successfully.

Commit - Link Dashboard - Link

316 tests run, 28 skipped, 0 failed.

cordova-qa avatar Jun 01 '17 07:06 cordova-qa

Cordova CI Build has one or more failures.

Commit - Link Dashboard - Link

316 tests run, 28 skipped, 1 failed.

cordova-qa avatar Jun 01 '17 18:06 cordova-qa

cordova-qa: rerun tests

alsorokin avatar Jun 02 '17 09:06 alsorokin

Cordova CI Build has completed successfully.

Commit - Link Dashboard - Link

316 tests run, 28 skipped, 0 failed.

cordova-qa avatar Jun 02 '17 10:06 cordova-qa

Added a check to prevent error from null value being passed. Re based off of master.

charlesverge avatar Jul 08 '17 18:07 charlesverge

Any update on this?

jadurani avatar Jul 13 '18 18:07 jadurani

@charlesverge Are you still around and could rebase this to resolve the conflict?

janpio avatar Jul 13 '18 20:07 janpio

@janpio @jadurani I've rebased this.

And I have a test cordova app to demo how to use the options at https://github.com/charlesverge/cordova-camera-test

With the key pieces in https://github.com/charlesverge/cordova-camera-test/blob/master/www/js/index.js https://github.com/charlesverge/cordova-camera-test/blob/master/www/css/index.css

charlesverge avatar Jul 14 '18 01:07 charlesverge

Awesome, thank you @charlesverge !

Travis has some comments (test failures):

/Users/travis/build/apache/cordova-plugin-camera/src/browser/CameraProxy.js
   90:51  error  Infix operators must be spaced             space-infix-ops
  100:47  error  Infix operators must be spaced             space-infix-ops
  106:30  error  Strings must use singlequote               quotes
  112:29  error  Strings must use singlequote               quotes
  118:53  error  Infix operators must be spaced             space-infix-ops
  131:52  error  Infix operators must be spaced             space-infix-ops
  151:26  error  Missing space before function parentheses  space-before-function-paren
  160:29  error  Strings must use singlequote               quotes
  161:30  error  Strings must use singlequote               quotes
  170:27  error  Missing space before function parentheses  space-before-function-paren
  183:36  error  Strings must use singlequote               quotes
  184:36  error  Strings must use singlequote               quotes
  230:33  error  Strings must use singlequote               quotes
  231:33  error  Strings must use singlequote               quotes

janpio avatar Jul 14 '18 14:07 janpio

Hey, I just fixed the problem that caused Android tests to fail in master. Could you rebase this PR please? This should get rid of the Android failures and possibly fix all test failures for this PR.

janpio avatar Oct 01 '18 13:10 janpio

@janpio I've rebased the commit, the changes since the last rebase do not affect this code and everything looks good.

charlesverge avatar Oct 01 '18 17:10 charlesverge