Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-7099

[WP8][cordova-plugin-media] status callback it is reached several times in the same statement

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Activity

          People

            purplecabbage Jesse MacFadyen
            martin.c.glez.glez Martin Gonzalez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: