You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2014/09/25 19:33:35 UTC

[jira] [Commented] (CB-7638) Media.getDuration always return -1 on windows

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

ASF GitHub Bot commented on CB-7638:
------------------------------------

GitHub user vladimir-kotikov opened a pull request:

    https://github.com/apache/cordova-plugin-media/pull/31

    CB-7638 Get audio duration properly on windows

    Fix for https://issues.apache.org/jira/browse/CB-7638
    
    Proper way to get real audio duration is to use `onloadedmetadata` event for audio element to update duration of audio after successful loading.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/MSOpenTech/cordova-plugin-media CB-7638

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-plugin-media/pull/31.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #31
    
----
commit 2660e925ab3a4926999333751819fdac017698f7
Author: Vladimir Kotikov <v-...@microsoft.com>
Date:   2014-09-25T06:36:02Z

    CB-7638 Get audio duration properly on windows

----


> Media.getDuration always return -1 on windows
> ---------------------------------------------
>
>                 Key: CB-7638
>                 URL: https://issues.apache.org/jira/browse/CB-7638
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Media
>            Reporter: Vladimir Kotikov
>              Labels: duration, media,, windows
>
> media.{{getDuration()}} method on windows always return -1 since {{_duration}} attribute is being defined immediately after loading audio.
> Proper way is to use {{onloadedmetadata}} event for audio element to update duration of audio after successful loading.



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