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

[WP8][cordova-plugin-media] it gets multiple times to error callback, when an invalid file name is provided

    XMLWordPrintableJSON

Details

    Description

      When an invalid file name is provided to create a new Media object, the error callback it goes crazy, throwing the same error multiple times and getting to the same callback multiple times instead of one error notification or walk-through.
      E.g:
      badMedia = new Media("invalid.file.name", callback, errorcallack);

      It gets stuck in errorcallback for some time, before move on.

      Found porting mobilespec test to new plugin test framework, this behavior it was found trying to use the error callback object to complete the test, instead of set a timeout to determine if that callback it was called or not.

      This behavior it can be only reproduced under Windows Phone 8.
      Android works pretty fine, and without this issue.

      Attachments

        Issue Links

          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: