You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Nicolas Marseaud (JIRA)" <ji...@apache.org> on 2018/01/23 12:09:05 UTC

[jira] [Updated] (CB-13821) captureVideo() returns video in 480x320 on ios

     [ https://issues.apache.org/jira/browse/CB-13821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nicolas Marseaud updated CB-13821:
----------------------------------
    Environment:     (was: ionic client :
 * @ionic/cli-utils : 1.19.1
 * ionic (Ionic CLI) : 3.19.1

global packages :
 * cordova (Cordova CLI) : 7.1.0

local packages :
 * @ionic/app-scripts : 3.1.2
 * Ionic Framework : ionic-angular 3.9.2

cordova-plugin-media-capture version used : 3.0.1

Devices encountering the issue :
 * ios 10.3.3
 * ios 9.3)

> captureVideo() returns video in 480x320 on ios
> ----------------------------------------------
>
>                 Key: CB-13821
>                 URL: https://issues.apache.org/jira/browse/CB-13821
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-media-capture
>            Reporter: Nicolas Marseaud
>            Priority: Critical
>              Labels: beginner
>
> The full issue is currently discussed here [https://forum.ionicframework.com/t/media-capture-video-is-low-quality/103774/23]
> When using the method captureVideo(), the video is automatically set to 480x320 on ios
> I am working on a ionic-angular project, here is a code sample :
>  
> {code:java}
> // code sample
> var options = { quality: 1,duration:180 };
> this.mediaCapture.captureVideo(options).then(videodata => {
>   console.log('start capture video');
>   var i;
>     for (i in videodata) {
>        let encodedName = new Date().getTime().toString();
>        let options = {
>           fileUri: videodata[i].fullPath
>        };
>        if (!this.platform.is('ios')) options['audioChannels'] = 1;
>        this.videoEditor.getVideoInfo(options).then((videoInfo) => {
>           console.log('video width : '+videoInfo.width);
>           console.log('video height : '+videoInfo.height);
>           // returns 480x320 on ios and 1920x1080 on android
>        });
> });
> {code}
> FYI : I'm developping android, right I'm helping a colleague for the ios, and this is the last probleme to solve
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org