cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-11146) iOS getDuration only available after play
Date Mon, 25 Apr 2016 13:28:12 GMT

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

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

GitHub user dpeacock opened a pull request:

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

    CB-11146 - iOS getDuration only available after play

    Duration is now set on create.

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

    $ git pull https://github.com/dpeacock/cordova-plugin-media iOS_getDuration

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

    https://github.com/apache/cordova-plugin-media/pull/94.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 #94
    
----
commit 67c28aa78ca96f90471870c70964ac3df7d2f905
Author: David Peacock <dapeacock@gmail.com>
Date:   2016-04-22T20:50:31Z

    Duration is now set on creation

----


> iOS getDuration only available after play
> -----------------------------------------
>
>                 Key: CB-11146
>                 URL: https://issues.apache.org/jira/browse/CB-11146
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS, Plugin Media
>            Reporter: David Peacock
>
> In the Media plug-in with iOS the getDuration is only available once play has been called.
 This is because the callback to set the duration is only ever triggered from play.
> Previously you could call play/stop immediately to get around this, this no longer works
as the stop will not invoke unless the sound actually is playing.  This wasn't ideal anyways
as the documentation shows you should only have to create a new Media object and then getDuration
should be available to be used.  Tested in Android and it works as expected, iOS should initialize
duration on create.



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