Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
thisM.node.onerror = function (e) {
// Due to media.spec.15 It should return MediaError for bad filename
var err = e.target.error.code === MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED ?
{ code: MediaError.MEDIA_ERR_ABORTED } :
e.target.error;
Media.onStatus(id, Media.MEDIA_ERROR, err);
};