cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Marseaud (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-13821) captureVideo() returns video in 480x320 on ios
Date Tue, 23 Jan 2018 12:09:05 GMT

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

Nicolas Marseaud updated CB-13821:
----------------------------------
    Description: 
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

Env Info :

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

  was:
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

 


> 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
> Env Info :
> 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



--
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


Mime
View raw message