cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gorkem Ogut (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-7117) MediaFile.getFormatData() of newly-recorded video contains bad information
Date Fri, 07 Nov 2014 11:33:33 GMT

    [ https://issues.apache.org/jira/browse/CB-7117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14201942#comment-14201942
] 

Gorkem Ogut commented on CB-7117:
---------------------------------

+1 here. I also tested it for audio and video on iOS 8.1. Same problem available on both.

> MediaFile.getFormatData() of newly-recorded video contains bad information
> --------------------------------------------------------------------------
>
>                 Key: CB-7117
>                 URL: https://issues.apache.org/jira/browse/CB-7117
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Media, Plugin Media Capture
>    Affects Versions: 3.5.0
>         Environment: iOS 7, Android 4.4
>            Reporter: Matthew Curtis
>
> I use the capture plugin to record a video from the device's camera. Upon completion
of recording, I'd like to get the duration of the video for use in my application. However,
when I run this test on my iPad or Android phone, the MediaFileData object contains zero-ed
out information. Here's a snippet:
> {code:JavaScript}
> navigator.device.capture.captureVideo(
>     function(files) {
>         var videoFile = files[0];
>         videoFile.getFormatData(function(fileData) {
>             console.log('file data:' + JSON.stringify(fileData));
>         });
>     }
> );
> {code}
> The console output is:
> {code:JavaScript}
> file data:{"width":0,"duration":0,"bitrate":0,"codecs":null,"height":0}
> {code}
> As best as I can tell, I'm using this correctly. Is there something I'm missing, or can
this not be used for newly-created media?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message