vistar-html5player
Advanced tools
Comparing version 1.2.5 to 1.2.6
@@ -64,2 +64,8 @@ (function() { | ||
ProofOfPlay.prototype._transform = function(ad, encoding, callback) { | ||
var write; | ||
write = (function(_this) { | ||
return function() { | ||
return _this.write(ad); | ||
}; | ||
})(this); | ||
if (this._wasDisplayed(ad)) { | ||
@@ -70,2 +76,21 @@ return this.confirm(ad).then((function(_this) { | ||
}; | ||
})(this))["catch"]((function(_this) { | ||
return function(e) { | ||
var _ref; | ||
callback(); | ||
if ((e != null ? (_ref = e.currentTarget) != null ? _ref.status : void 0 : void 0) === 0) { | ||
_this.log.write({ | ||
name: 'ProofOfPlay', | ||
message: 'confirm failed, adding back to the queue.', | ||
meta: ad | ||
}); | ||
return setTimeout(write, 5000); | ||
} else { | ||
return _this.log.write({ | ||
name: 'ProofOfPlay', | ||
message: 'confirm failed, dropping the request.', | ||
meta: ad | ||
}); | ||
} | ||
}; | ||
})(this)); | ||
@@ -77,2 +102,21 @@ } else { | ||
}; | ||
})(this))["catch"]((function(_this) { | ||
return function(e) { | ||
var _ref; | ||
callback(); | ||
if ((e != null ? (_ref = e.currentTarget) != null ? _ref.status : void 0 : void 0) === 0) { | ||
_this.log.write({ | ||
name: 'ProofOfPlay', | ||
message: 'expire failed, adding back to the queue.', | ||
meta: ad | ||
}); | ||
return setTimeout(write, 5000); | ||
} else { | ||
return _this.log.write({ | ||
name: 'ProofOfPlay', | ||
message: 'expire failed, dropping the request.', | ||
meta: ad | ||
}); | ||
} | ||
}; | ||
})(this)); | ||
@@ -79,0 +123,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"description": "An HTML 5 Player for Vistar Media assets.", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"homepage": "http://kb.vistarmedia.com/display/sell/HTML5+Player", | ||
@@ -8,0 +8,0 @@ "repository": { |
34254
913