From 015508a2239080a59ea1b6a3837285f0152e3d9f Mon Sep 17 00:00:00 2001 From: Alexey Date: Thu, 27 May 2021 19:07:19 +0300 Subject: [PATCH] fix: don't reset video element on ios if it is playing --- src/runner/runWaterfall.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runner/runWaterfall.js b/src/runner/runWaterfall.js index 0a91ebde..950a9b40 100644 --- a/src/runner/runWaterfall.js +++ b/src/runner/runWaterfall.js @@ -173,7 +173,7 @@ const runWaterfall = (adTag, placeholder, options) => { onRunFinish: callbackHandler(options.onRunFinish) }; - if (options.videoElement && isIOS()) { + if (options.videoElement && options.videoElement.paused && isIOS()) { /* It seems that if the video doesn't load synchronously inside a touchend or click event handler, the user gesture breaks on iOS and it won't allow a play. */