Skip to content

Commit

Permalink
Merge pull request #869 from googleads/update
Browse files Browse the repository at this point in the history
Build for samples at v1.7.3
  • Loading branch information
Kiro705 authored Dec 12, 2019
2 parents 4f7aecc + 005cf3b commit c3d47f3
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 19 deletions.
8 changes: 5 additions & 3 deletions dist/videojs.ima.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ AdUi.prototype.createControls = function () {
this.assignControlAttributes(this.controlsDiv, 'ima-controls-div');
this.controlsDiv.style.width = '100%';

if (!this.controller.getIsMobile) {
if (!this.controller.getIsMobile()) {
this.assignControlAttributes(this.countdownDiv, 'ima-countdown-div');
this.countdownDiv.innerHTML = this.controller.getSettings().adLabel;
this.countdownDiv.style.display = this.showCountdown ? 'block' : 'none';
Expand Down Expand Up @@ -792,6 +792,7 @@ AdUi.prototype.onAdFullscreenClick = function () {
* Show pause and hide play button
*/
AdUi.prototype.onAdsPaused = function () {
this.controller.sdkImpl.adPlaying = false;
this.addClass(this.playPauseDiv, 'ima-paused');
this.removeClass(this.playPauseDiv, 'ima-playing');
this.showAdControls();
Expand All @@ -809,6 +810,7 @@ AdUi.prototype.onAdsResumed = function () {
* Show play and hide pause button
*/
AdUi.prototype.onAdsPlaying = function () {
this.controller.sdkImpl.adPlaying = true;
this.addClass(this.playPauseDiv, 'ima-playing');
this.removeClass(this.playPauseDiv, 'ima-paused');
};
Expand Down Expand Up @@ -1106,7 +1108,7 @@ AdUi.prototype.setShowCountdown = function (showCountdownIn) {
};

var name = "videojs-ima";
var version = "1.7.1";
var version = "1.7.3";
var license = "Apache-2.0";
var main = "./dist/videojs.ima.js";
var module$1 = "./dist/videojs.ima.es.js";
Expand Down Expand Up @@ -2410,7 +2412,7 @@ Controller.prototype.setAdBreakReadyListener = function (listener) {
Controller.prototype.setShowCountdown = function (showCountdownIn) {
this.adUi.setShowCountdown(showCountdownIn);
this.showCountdown = showCountdownIn;
this.countdownDiv.style.display = this.showCountdown ? 'block' : 'none';
this.adUi.countdownDiv.style.display = this.showCountdown ? 'block' : 'none';
};

/**
Expand Down
8 changes: 5 additions & 3 deletions dist/videojs.ima.js
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ AdUi.prototype.createControls = function () {
this.assignControlAttributes(this.controlsDiv, 'ima-controls-div');
this.controlsDiv.style.width = '100%';

if (!this.controller.getIsMobile) {
if (!this.controller.getIsMobile()) {
this.assignControlAttributes(this.countdownDiv, 'ima-countdown-div');
this.countdownDiv.innerHTML = this.controller.getSettings().adLabel;
this.countdownDiv.style.display = this.showCountdown ? 'block' : 'none';
Expand Down Expand Up @@ -798,6 +798,7 @@ AdUi.prototype.onAdFullscreenClick = function () {
* Show pause and hide play button
*/
AdUi.prototype.onAdsPaused = function () {
this.controller.sdkImpl.adPlaying = false;
this.addClass(this.playPauseDiv, 'ima-paused');
this.removeClass(this.playPauseDiv, 'ima-playing');
this.showAdControls();
Expand All @@ -815,6 +816,7 @@ AdUi.prototype.onAdsResumed = function () {
* Show play and hide pause button
*/
AdUi.prototype.onAdsPlaying = function () {
this.controller.sdkImpl.adPlaying = true;
this.addClass(this.playPauseDiv, 'ima-playing');
this.removeClass(this.playPauseDiv, 'ima-paused');
};
Expand Down Expand Up @@ -1112,7 +1114,7 @@ AdUi.prototype.setShowCountdown = function (showCountdownIn) {
};

var name = "videojs-ima";
var version = "1.7.1";
var version = "1.7.3";
var license = "Apache-2.0";
var main = "./dist/videojs.ima.js";
var module$1 = "./dist/videojs.ima.es.js";
Expand Down Expand Up @@ -2416,7 +2418,7 @@ Controller.prototype.setAdBreakReadyListener = function (listener) {
Controller.prototype.setShowCountdown = function (showCountdownIn) {
this.adUi.setShowCountdown(showCountdownIn);
this.showCountdown = showCountdownIn;
this.countdownDiv.style.display = this.showCountdown ? 'block' : 'none';
this.adUi.countdownDiv.style.display = this.showCountdown ? 'block' : 'none';
};

/**
Expand Down
2 changes: 1 addition & 1 deletion dist/videojs.ima.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion node_modules/video.js/dist/video-js.min.css

Large diffs are not rendered by default.

14 changes: 3 additions & 11 deletions node_modules/video.js/dist/video.min.js

Large diffs are not rendered by default.

0 comments on commit c3d47f3

Please sign in to comment.