Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function () {
audioObjects[id].pause();
if (audioObjects[id].currentTime !== 0)
audioObjects[id].currentTime = 0;
console.log("media::onStalled() - MEDIA_ERROR -> " + MediaError.MEDIA_ERR_ABORTED);
var err = new MediaError(MediaError.MEDIA_ERR_ABORTED, "Stalled");
Media.onStatus(id, Media.MEDIA_ERROR, err);
},
2000);