Martin Gonzalez created CB-7099:
-----------------------------------
Summary: [WP8][cordova-plugin-media] status callback it is reached
several times in the same statement
Key: CB-7099
URL: https://issues.apache.org/jira/browse/CB-7099
Project: Apache Cordova
Issue Type: Bug
Components: Plugin Media, WP8
Affects Versions: 3.5.0
Reporter: Martin Gonzalez
Assignee: Jesse MacFadyen
Fix For: 3.6.0
The optional status callback in a Media object, it is reached multiple times in
the same statement, even with the same status code.
E.g:
var media= new Media("http://url/to/media/file.mp3",successCallback,
fail.bind(null, done), statuschange);
The status change callback function it is reached several times, even with the
same status code, if at the beginning is stopped, if the state changes to a
different status code like running, it won't stop to reach and walk-through the
same callback reporting the same status code.
This behavior it can be only reproduced over Windows Phone 8. The right
behavior it supposed to that status callback it would be called only if the
status is changed.
The issue was found porting tests to plugin-test-framework CB-6963.
--
This message was sent by Atlassian JIRA
(v6.2#6252)