Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
pausePlayingAudio:function(successCallback, errorCallback, args) {
var id = args[0];
console.log("media::pausePlayingAudio() - MEDIA_STATE -> MEDIA_PAUSED");
audioObjects[id].pause();
Media.onStatus(id, Media.MEDIA_STATE, Media.MEDIA_PAUSED);
},
pausePlayingAudio:function(win, lose, args) {
var id = args[0];
var thisM = Media.get(id);
try {
thisM.node.pause();
Media.onStatus(id, Media.MEDIA_STATE, Media.MEDIA_PAUSED);
} catch (err) {
lose("Failed to pause: "+err);
}
},