[
https://issues.apache.org/jira/browse/CB-10197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alexandre Freire updated CB-10197:
----------------------------------
Summary: cordova-plugin-media doesn't triggers success, failure,
mediaStatus on a physical device with Android 4.4.2 (was: cordova-plugin-media
doesn't triggers success, failure, mediaStatus on a physical device with 4.4.2)
> cordova-plugin-media doesn't triggers success, failure, mediaStatus on a
> physical device with Android 4.4.2
> -----------------------------------------------------------------------------------------------------------
>
> Key: CB-10197
> URL: https://issues.apache.org/jira/browse/CB-10197
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android, Plugin Media
> Affects Versions: 3.5.0
> Environment: Infocus Android 4.4.2
> Built on MacBook OSX 10.10.5
> com.ionic.keyboard: 1.0.4
> cordova-plugin-device: 1.0.1
> cordova-plugin-file: 4.0.0
> cordova-plugin-inappbrowser: 1.0.1
> cordova-plugin-media: 2.0.0
> cordova-plugin-network-information: 1.1.1-dev
> cordova-plugin-splashscreen: 2.1.0
> cordova-plugin-whitelist: 1.0.0
> phonegap-plugin-mobile-accessibility: 1.0.2-dev
> ios cordova: 3.9.2
> android cordova: 5.0.0
> npm: 3.3.12
> node: v5.1.1
> cordova: 5.4.1
> plugman: 1.0.5
> Reporter: Alexandre Freire
>
> In code bellow, it creates the Media object, it plays the files, but it never
> triggers success, error, or mediaStatus.
> I used chrome remote debugger, chrome console and breakpoints to monitor if
> those points were reached.
> This issue is major due:
> 1. On Android the seek methods doesn't always work on the 1st play.
> It's required to play/pause, and play/seek on the 1st time it plays.
> 2. I need to play only a slice of a large local file, but the time it takes
> to load and seek after the the timer to determine when to stop playing.
> this.media = new window.Media(this.url, function function_name(argument) {
> console.log("success");
> }, function function_name(argument) {
> console.log("error");
> }, function (mediaStatus) {
> console.log(mediaStatus);
> });
> this.media.play();
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]