/** | |
* This class contains information about any Media errors. | |
* @constructor | |
*/ | |
var MediaError = function(code, msg) { | |
this.code = (code !== undefined ? code : null); | |
this.message = msg || ""; | |
}; | |
MediaError.MEDIA_ERR_NONE_ACTIVE = 0; | |
MediaError.MEDIA_ERR_ABORTED = 1; | |
MediaError.MEDIA_ERR_NETWORK = 2; | |
MediaError.MEDIA_ERR_DECODE = 3; | |
MediaError.MEDIA_ERR_NONE_SUPPORTED = 4; | |
module.exports = MediaError; |