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

Media play() fails to play sound immediately after release() call on windows

    XMLWordPrintableJSON

Details

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

    Description

      In mobilespec, following recommended test procedure after pushing 'release' button and then immediately 'play' button i'm getting a foolowing error:

      Exception calling native with command :: Media :: startPlayingAudio ::exception=TypeError: Unable to get property 'play' of undefined or null reference
      Error getting pos=TypeError: Unable to get property 'currentTime' of undefined or null reference
      Exception was thrown at line 67, column 10 in ms-appx://org.apache.mobilespec/www/plugins/org.apache.cordova.media/src/windows8/MediaProxy.js
      0x800a138f - JavaScript runtime error: Unable to get property 'play' of undefined or null reference
      Exception was thrown at line 111, column 13 in ms-appx://org.apache.mobilespec/www/plugins/org.apache.cordova.media/src/windows8/MediaProxy.js
      0x800a138f - JavaScript runtime error: Unable to get property 'currentTime' of undefined or null reference
      

      It seems that problem in startPlayingAudio() method in MediaProxy.js, that doesn't ensures that node property of current Audio object is exists .

      Attachments

        Activity

          People

            Unassigned Unassigned
            vladimir.kotikov Vladimir Kotikov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: