diff --git a/.travis.yml b/.travis.yml index 0a7c208..c6cea7b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,9 @@ dist: xenial language: node_js node_js: - 'node' +env: + global: + - NODE_OPTIONS="--openssl-legacy-provider" addons: chrome: stable diff --git a/src/ima-dai.js b/src/ima-dai.js index 4a44979..bda321d 100644 --- a/src/ima-dai.js +++ b/src/ima-dai.js @@ -566,11 +566,13 @@ class ImaDAI extends BasePlugin implements IAdsControllerProvider, IEngineDecora this.player.pause(); this.pauseAd(); } + } else if (this._state === ImaDAIState.PAUSED) { + this.player.play(); + this.resumeAd(); } } _onAdPause() { - this.player.pause(); this.pauseAd(); } diff --git a/yarn.lock b/yarn.lock index 22cce32..1f67289 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1886,9 +1886,9 @@ camelcase@^6.0.0: integrity sha512-8KMDF1Vz2gzOq54ONPJS65IvTUaB1cHJ2DMM7MbPmLZljDH1qpzzLsWdiN9pHh6qvkRVDTi/07+eNGch/oLU4w== caniuse-lite@^1.0.30001093: - version "1.0.30001105" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001105.tgz#d2cb0b31e5cf2f3ce845033b61c5c01566549abf" - integrity sha512-JupOe6+dGMr7E20siZHIZQwYqrllxotAhiaej96y6x00b/48rPt42o+SzOSCPbrpsDWvRja40Hwrj0g0q6LZJg== + version "1.0.30001292" + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001292.tgz" + integrity sha512-jnT4Tq0Q4ma+6nncYQVe7d73kmDmE9C3OGTx3MvW7lBM/eY1S1DZTMBON7dqV481RhNiS5OxD7k9JQvmDOTirw== chai@^4.2.0: version "4.2.0"