Skip to content

Commit 85cdb7b

Browse files
committed
Fix vimeo playIfBase to open fullscreen at start
1 parent 7f007f9 commit 85cdb7b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/code/Magento/ProductVideo/view/frontend/web/js/fotorama-add-video-events.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,13 @@ define([
549549
waitForFroogaloop = setInterval($.proxy(function () {
550550
if (window.Froogaloop) {
551551
clearInterval(waitForFroogaloop);
552+
fotorama.requestFullScreen();
552553
$(this.element).data('fotorama').activeFrame.$stageFrame[0].click();
554+
$('.fotorama__fullscreen-icon').css({
555+
opacity: '1',
556+
visibility: 'visible',
557+
display: 'block'
558+
});
553559
this.Base = false;
554560
}
555561
}, this), 50);

0 commit comments

Comments
 (0)