[
https://issues.apache.org/jira/browse/CB-11148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15256499#comment-15256499
]
ASF GitHub Bot commented on CB-11148:
-------------------------------------
GitHub user dpeacock opened a pull request:
https://github.com/apache/cordova-plugin-media/pull/95
CB-11148 - BB10 Media getDuration does not work
Duration is now set properly by calling onStatus for MEDIA_DURATION.
Removed old getDuration native function as this was not being used.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dpeacock/cordova-plugin-media CB-11148
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-plugin-media/pull/95.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 #95
----
commit 02d67c9d45523555546672fbc0cae359acc4757f
Author: David Peacock <[email protected]>
Date: 2016-04-25T15:45:54Z
Duration is now set properly by calling onStatus for MEDIA_DURATION.
Removed old getDuration native function as this was not being used.
----
> BB10 Media getDuration does not work
> ------------------------------------
>
> Key: CB-11148
> URL: https://issues.apache.org/jira/browse/CB-11148
> Project: Apache Cordova
> Issue Type: Bug
> Components: BlackBerry, Plugin Media
> Reporter: David Peacock
>
> In the latest media plug-in the getDuration for Blackberry10 will never work.
> The javascript code expects onStatus to be called to set the duration. The
> getDuration function only returns the value that would have been set from the
> onStatus. However, the BB10 code never calls onStatus so the duration will
> never be set.
> The BB10 code does have a native getDuration function, but this logic will
> never gets hit. The create function should result in a callback to onStatus
> to set the duration.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]