Skip to content

Commit

Permalink
ETPAND-10000: Ad audio is heard while the TrueX choice card is displa…
Browse files Browse the repository at this point in the history
…yed (#67)

* Pause playback when displaying an interactive ad to prevent sync issues.
  • Loading branch information
armands-malejevs authored May 12, 2023
1 parent 8fa7357 commit a09b185
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,6 @@ public void displayLinearAds() {

WritableMap payload = Arguments.createMap();
eventEmitter.adEvent("ENDED_TRUEX", payload);

adsLoader.skipAd();
startPlayback();
}
Expand All @@ -453,6 +452,7 @@ private void displayInteractiveAd(String vastUrl) {
// Pause the stream and display a true[X] engagement
Long position = player.getCurrentPosition();
if (position > 0) resumePosition = position;
pausePlayback();

// Start the true[X] engagement
ViewGroup viewGroup = (ViewGroup) truexOverlayFrameLayout;
Expand Down

0 comments on commit a09b185

Please sign in to comment.