You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Paul R. (JIRA)" <ji...@apache.org> on 2012/12/04 06:29:58 UTC

[jira] [Created] (CB-1962) Video Capture not compressing video after capture; Camera use cancels idleTimerDisabled.

Paul R. created CB-1962:
---------------------------

             Summary: Video Capture not compressing video after capture; Camera use cancels idleTimerDisabled.
                 Key: CB-1962
                 URL: https://issues.apache.org/jira/browse/CB-1962
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 2.2.0
            Reporter: Paul R.
            Assignee: Shazron Abdullah
            Priority: Blocker
             Fix For: 2.1.0


I have noticed the video capture option behaving differently in version 2.2.0. Captured video is no longer compressed as it used to be in v2.1.0 - which is a good thing as we can now have high quality video, but transferring an uncompressed video takes forever. Selecting the captured video from the Camera Roll still compresses it before uploading. Is there an undocumented compression function that has been added to the capture API in v2.2.0.

Additionally, I used application.idleTimerDisabled = YES in my didFinishLaunchingWithOptions routine in AppDelegate.m to keep the application from sleeping, but now using the camera resets that when capture is finished, and my app now goes to sleep and times out during file transfer.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1962) Video Capture not compressing video after capture; Camera use cancels idleTimerDisabled.

Posted by "Paul R. (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul R. updated CB-1962:
------------------------

    Priority: Major  (was: Blocker)
    
> Video Capture not compressing video after capture; Camera use cancels idleTimerDisabled.
> ----------------------------------------------------------------------------------------
>
>                 Key: CB-1962
>                 URL: https://issues.apache.org/jira/browse/CB-1962
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.2.0
>            Reporter: Paul R.
>            Assignee: Shazron Abdullah
>             Fix For: 2.1.0
>
>
> I have noticed the video capture option behaving differently in version 2.2.0. Captured video is no longer compressed as it used to be in v2.1.0 - which is a good thing as we can now have high quality video, but transferring an uncompressed video takes forever. Selecting the captured video from the Camera Roll still compresses it before uploading. Is there an undocumented compression function that has been added to the capture API in v2.2.0.
> Additionally, I used application.idleTimerDisabled = YES in my didFinishLaunchingWithOptions routine in AppDelegate.m to keep the application from sleeping, but now using the camera resets that when capture is finished, and my app now goes to sleep and times out during file transfer.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1962) Video Capture not compressing video after capture; Camera use cancels idleTimerDisabled.

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13511151#comment-13511151 ] 

Shazron Abdullah commented on CB-1962:
--------------------------------------

They are two different plugins for the Capture and Camera APIs. Capture as you have seen uses high quality while Camera uses the default (medium).
                
> Video Capture not compressing video after capture; Camera use cancels idleTimerDisabled.
> ----------------------------------------------------------------------------------------
>
>                 Key: CB-1962
>                 URL: https://issues.apache.org/jira/browse/CB-1962
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.2.0
>            Reporter: Paul R.
>            Assignee: Shazron Abdullah
>             Fix For: 2.1.0
>
>
> I have noticed the video capture option behaving differently in version 2.2.0. Captured video is no longer compressed as it used to be in v2.1.0 - which is a good thing as we can now have high quality video, but transferring an uncompressed video takes forever. Selecting the captured video from the Camera Roll still compresses it before uploading. Is there an undocumented compression function that has been added to the capture API in v2.2.0.
> Additionally, I used application.idleTimerDisabled = YES in my didFinishLaunchingWithOptions routine in AppDelegate.m to keep the application from sleeping, but now using the camera resets that when capture is finished, and my app now goes to sleep and times out during file transfer.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1962) Video Capture not compressing video after capture; Camera use cancels idleTimerDisabled.

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-1962:
---------------------------------

    Fix Version/s:     (was: 2.1.0)
                   2.3.0
    
> Video Capture not compressing video after capture; Camera use cancels idleTimerDisabled.
> ----------------------------------------------------------------------------------------
>
>                 Key: CB-1962
>                 URL: https://issues.apache.org/jira/browse/CB-1962
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.2.0
>            Reporter: Paul R.
>            Assignee: Shazron Abdullah
>             Fix For: 2.3.0
>
>
> I have noticed the video capture option behaving differently in version 2.2.0. Captured video is no longer compressed as it used to be in v2.1.0 - which is a good thing as we can now have high quality video, but transferring an uncompressed video takes forever. Selecting the captured video from the Camera Roll still compresses it before uploading. Is there an undocumented compression function that has been added to the capture API in v2.2.0.
> Additionally, I used application.idleTimerDisabled = YES in my didFinishLaunchingWithOptions routine in AppDelegate.m to keep the application from sleeping, but now using the camera resets that when capture is finished, and my app now goes to sleep and times out during file transfer.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1962) Video Capture not compressing video after capture; Camera use cancels idleTimerDisabled.

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13511155#comment-13511155 ] 

Shazron Abdullah commented on CB-1962:
--------------------------------------

Core API Audit: http://wiki.apache.org/cordova/Core%20API%20Audit
                
> Video Capture not compressing video after capture; Camera use cancels idleTimerDisabled.
> ----------------------------------------------------------------------------------------
>
>                 Key: CB-1962
>                 URL: https://issues.apache.org/jira/browse/CB-1962
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.2.0
>            Reporter: Paul R.
>            Assignee: Shazron Abdullah
>             Fix For: 2.3.0
>
>
> I have noticed the video capture option behaving differently in version 2.2.0. Captured video is no longer compressed as it used to be in v2.1.0 - which is a good thing as we can now have high quality video, but transferring an uncompressed video takes forever. Selecting the captured video from the Camera Roll still compresses it before uploading. Is there an undocumented compression function that has been added to the capture API in v2.2.0.
> Additionally, I used application.idleTimerDisabled = YES in my didFinishLaunchingWithOptions routine in AppDelegate.m to keep the application from sleeping, but now using the camera resets that when capture is finished, and my app now goes to sleep and times out during file transfer.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1962) Video Capture not compressing video after capture; Camera use cancels idleTimerDisabled.

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13511154#comment-13511154 ] 

Shazron Abdullah commented on CB-1962:
--------------------------------------

Setting an iOS specific Project Setting will not work -- plugins should not have this as a dependency. We will have to work with the API and have "thresholds" for width and height that encapsulate the different quality settings. Not sure yet if that is the right approach, or will be downright confusing.

In any case, Capture is slated for API audit and is deprecated for the new getUserMedia stuff: http://www.w3.org/TR/media-capture-api/ (but that's probably months from now) so I don't know if this is worth the effort. 

The best course of action will be to revert https://github.com/apache/cordova-ios/commit/1c9ce2a038d234b47957287c4aac7217ec7ed243#CordovaLib/Classes/CDVCapture.m




                
> Video Capture not compressing video after capture; Camera use cancels idleTimerDisabled.
> ----------------------------------------------------------------------------------------
>
>                 Key: CB-1962
>                 URL: https://issues.apache.org/jira/browse/CB-1962
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.2.0
>            Reporter: Paul R.
>            Assignee: Shazron Abdullah
>             Fix For: 2.3.0
>
>
> I have noticed the video capture option behaving differently in version 2.2.0. Captured video is no longer compressed as it used to be in v2.1.0 - which is a good thing as we can now have high quality video, but transferring an uncompressed video takes forever. Selecting the captured video from the Camera Roll still compresses it before uploading. Is there an undocumented compression function that has been added to the capture API in v2.2.0.
> Additionally, I used application.idleTimerDisabled = YES in my didFinishLaunchingWithOptions routine in AppDelegate.m to keep the application from sleeping, but now using the camera resets that when capture is finished, and my app now goes to sleep and times out during file transfer.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1962) Video Capture not compressing video after capture; Camera use cancels idleTimerDisabled.

Posted by "Paul R. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13510621#comment-13510621 ] 

Paul R. commented on CB-1962:
-----------------------------

Thanks for the info Shazron. Sorry for mixing in two separate issues together. 

Can you tell me why the camera roll (selecting videos via navigator.camera.PictureSourceType.PHOTOLIBRARY) compresses videos, while capture doesn't? Is it possible to incorporate that functionality into capture?
                
> Video Capture not compressing video after capture; Camera use cancels idleTimerDisabled.
> ----------------------------------------------------------------------------------------
>
>                 Key: CB-1962
>                 URL: https://issues.apache.org/jira/browse/CB-1962
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.2.0
>            Reporter: Paul R.
>            Assignee: Shazron Abdullah
>             Fix For: 2.1.0
>
>
> I have noticed the video capture option behaving differently in version 2.2.0. Captured video is no longer compressed as it used to be in v2.1.0 - which is a good thing as we can now have high quality video, but transferring an uncompressed video takes forever. Selecting the captured video from the Camera Roll still compresses it before uploading. Is there an undocumented compression function that has been added to the capture API in v2.2.0.
> Additionally, I used application.idleTimerDisabled = YES in my didFinishLaunchingWithOptions routine in AppDelegate.m to keep the application from sleeping, but now using the camera resets that when capture is finished, and my app now goes to sleep and times out during file transfer.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1962) Video Capture not compressing video after capture; Camera use cancels idleTimerDisabled.

Posted by "Paul R. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13511165#comment-13511165 ] 

Paul R. commented on CB-1962:
-----------------------------

Makes sense. Thanks!
                
> Video Capture not compressing video after capture; Camera use cancels idleTimerDisabled.
> ----------------------------------------------------------------------------------------
>
>                 Key: CB-1962
>                 URL: https://issues.apache.org/jira/browse/CB-1962
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.2.0
>            Reporter: Paul R.
>            Assignee: Shazron Abdullah
>             Fix For: 2.3.0
>
>
> I have noticed the video capture option behaving differently in version 2.2.0. Captured video is no longer compressed as it used to be in v2.1.0 - which is a good thing as we can now have high quality video, but transferring an uncompressed video takes forever. Selecting the captured video from the Camera Roll still compresses it before uploading. Is there an undocumented compression function that has been added to the capture API in v2.2.0.
> Additionally, I used application.idleTimerDisabled = YES in my didFinishLaunchingWithOptions routine in AppDelegate.m to keep the application from sleeping, but now using the camera resets that when capture is finished, and my app now goes to sleep and times out during file transfer.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1962) Video Capture not compressing video after capture; Camera use cancels idleTimerDisabled.

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13510188#comment-13510188 ] 

Shazron Abdullah commented on CB-1962:
--------------------------------------

This commit broke this: https://github.com/apache/cordova-ios/commit/1c9ce2a038d234b47957287c4aac7217ec7ed243#CordovaLib/Classes/CDVCapture.m

The default was UIImagePickerControllerQualityTypeMedium, now it is UIImagePickerControllerQualityTypeHigh

I suppose we could support this in the CaptureVideoOptions.mode (not currently supported) - but you can only set width and height as an option, and it doesn't really map to most iOS video capture modes, so that won't really work: http://developer.apple.com/library/ios/documentation/uikit/reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html#//apple_ref/c/tdef/UIImagePickerControllerQualityType

The only other alternative is to set an iOS specific value in Cordova.plist/config.xml Project Settings: http://docs.phonegap.com/en/2.2.0/guide_project-settings_ios_index.md.html#Project%20Settings%20for%20iOS

As for the idleTimerDisabled stuff, this has nothing to do with the Cordova API I don't think - in any case, that should be filed as a separate issue to be evaluated.
                
> Video Capture not compressing video after capture; Camera use cancels idleTimerDisabled.
> ----------------------------------------------------------------------------------------
>
>                 Key: CB-1962
>                 URL: https://issues.apache.org/jira/browse/CB-1962
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.2.0
>            Reporter: Paul R.
>            Assignee: Shazron Abdullah
>            Priority: Blocker
>             Fix For: 2.1.0
>
>
> I have noticed the video capture option behaving differently in version 2.2.0. Captured video is no longer compressed as it used to be in v2.1.0 - which is a good thing as we can now have high quality video, but transferring an uncompressed video takes forever. Selecting the captured video from the Camera Roll still compresses it before uploading. Is there an undocumented compression function that has been added to the capture API in v2.2.0.
> Additionally, I used application.idleTimerDisabled = YES in my didFinishLaunchingWithOptions routine in AppDelegate.m to keep the application from sleeping, but now using the camera resets that when capture is finished, and my app now goes to sleep and times out during file transfer.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira