[ https://issues.apache.org/jira/browse/CB-7531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14131387#comment-14131387 ]
ASF GitHub Bot commented on CB-7531: ------------------------------------ GitHub user vladimir-kotikov opened a pull request: https://github.com/apache/cordova-plugin-media/pull/28 CB-7531 Fixes play() failure after release() call Fix for https://issues.apache.org/jira/browse/CB-7531 You can merge this pull request into a Git repository by running: $ git pull https://github.com/MSOpenTech/cordova-plugin-media CB-7531 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cordova-plugin-media/pull/28.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #28 ---- commit 4ba6b139eb846b91ebd022409cc6b87acb913463 Author: Vladimir Kotikov <v-vlk...@microsoft.com> Date: 2014-09-12T11:10:59Z CB-7531 Fixes play() failure after release() call ---- > Media play() fails to play sound immediately after release() call on windows > ---------------------------------------------------------------------------- > > Key: CB-7531 > URL: https://issues.apache.org/jira/browse/CB-7531 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Media > Reporter: Vladimir Kotikov > Labels: media, windows > > In mobilespec, following recommended test procedure after pushing 'release' > button and then immediately 'play' button i'm getting a foolowing error: > {noformat} > 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 > {noformat} > It seems that problem in {{startPlayingAudio()}} method in MediaProxy.js, > that doesn't ensures that {{node}} property of current Audio object is exists > . -- This message was sent by Atlassian JIRA (v6.3.4#6332)