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

plugin-media doesn't load on windows8 change AudioHandler. to media.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Master
    • 3.1.0
    • cordova-plugin-media
    • None
    • Windows8

    Description

      MediaProxy tries to require modules that don't exist

      SCRIPT5022: Unhandled exception at line 56, column 13 in ms-appx://a535d4bc-7a2d-44d4-bd40-786f4286f06a/www/cordova.js
      0x800a139e - JavaScript runtime error: module org.apache.cordova.AudioHandler.Media not found
      File: cordova.js, Line: 56, Column: 13

      The fix is to change the references in src/windows8/MediaProxy.js
      From:
      Media = require('org.apache.cordova.AudioHandler.Media');
      MediaError = require('org.apache.cordova.AudioHandler.MediaError');

      To:
      Media = require('org.apache.cordova.media.Media');
      MediaError = require('org.apache.cordova.media.MediaError');

      Attachments

        Activity

          People

            csantana Carlos Santana
            csantana Carlos Santana
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: