Skip to content

Commit 0550d29

Browse files
committed
fix(UI): Don't exit Fullscreen and PiP when unloading an ad (#8879)
1 parent 9fa0591 commit 0550d29

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui/controls.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,9 @@ shaka.ui.Controls = class extends shaka.util.FakeEventTarget {
225225
});
226226

227227
this.eventManager_.listen(this.player_, 'unloading', () => {
228+
if (this.ad_) {
229+
return;
230+
}
228231
if (this.isFullScreenEnabled()) {
229232
this.exitFullScreen_();
230233
}

0 commit comments

Comments
 (0)