Carlos Santana created CB-4928:
----------------------------------

             Summary: plugin-media doesn't load on windows8 change 
AudioHandler. to media.
                 Key: CB-4928
                 URL: https://issues.apache.org/jira/browse/CB-4928
             Project: Apache Cordova
          Issue Type: Bug
          Components: Plugin Media
    Affects Versions: Master
         Environment: Windows8
            Reporter: Carlos Santana
            Assignee: Carlos Santana


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');



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to