vistar-html5player
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -37,2 +37,3 @@ (function() { | ||
network_id: this.config.networkId, | ||
venue_id: this.config.venueId, | ||
number_of_screens: 1 | ||
@@ -39,0 +40,0 @@ }; |
@@ -28,2 +28,11 @@ (function() { | ||
Player.setAsPlayed = function(ad, wasPlayed) { | ||
if (ad != null) { | ||
ad['html5player'] = { | ||
was_played: wasPlayed | ||
}; | ||
} | ||
return ad; | ||
}; | ||
function Player() { | ||
@@ -60,3 +69,3 @@ this._videoFinished = __bind(this._videoFinished, this); | ||
clearTimeout(_this._timeoutId); | ||
ad = _this._setAsPlayed(advertisement, true); | ||
ad = Player.setAsPlayed(advertisement, true); | ||
_this.log.write({ | ||
@@ -96,3 +105,3 @@ name: 'Player', | ||
} else { | ||
return callback(null, this._setAsPlayed(advertisement, false)); | ||
return callback(null, Player.setAsPlayed(advertisement, false)); | ||
} | ||
@@ -104,3 +113,3 @@ }; | ||
clearTimeout(this._timeoutId); | ||
ad = this._setAsPlayed(this._currentAd, true); | ||
ad = Player.setAsPlayed(this._currentAd, true); | ||
this.log.write({ | ||
@@ -113,11 +122,2 @@ name: 'Player', | ||
Player.prototype._setAsPlayed = function(ad, wasPlayed) { | ||
if (ad != null) { | ||
ad['html5player'] = { | ||
was_played: wasPlayed | ||
}; | ||
} | ||
return ad; | ||
}; | ||
return Player; | ||
@@ -124,0 +124,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "An HTML 5 Player for Vistar Media assets.", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"homepage": "http://kb.vistarmedia.com/display/sell/HTML5+Player", | ||
@@ -8,0 +8,0 @@ "repository": { |
25392
652