Skip to content

Commit 5b61cba

Browse files
solveratpixel81k
andauthored
Video Autoplay Fix (#132)
* implementation for issue #129 - video areabrick: autoplay setting * fix video autoplay Co-authored-by: pixel81k <pixel81k@gmail.com>
1 parent 093c681 commit 5b61cba

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

UPGRADE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Just click the "update" button or execute the migration command to finish the bu
88

99
#### Update from Version 3.1.x to Version 3.2.0
1010
- **[NEW FEATURE]**: Pimcore 6.4.0 and Pimcore 6.5.0 ready
11+
- **[BUG FIX]**: Video Autoplay Fix (https://github.com/dachcom-digital/pimcore-toolbox/issues/129)
1112

1213
#### Update from Version 3.x to Version 3.1.0
1314
- **[NEW FEATURE]**: Pimcore 6.3.0 ready

src/ToolboxBundle/Resources/public/js/frontend/plugins/jquery.tb.ext.video.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@
282282
};
283283

284284
if (!_.hasPoster) {
285-
initPlayer(_.$player.get(0));
285+
initPlayer(_.$player.get(0), _.autoPlay);
286286
} else {
287287
_.$element.one('click', function (ev) {
288288
ev.preventDefault();
@@ -378,7 +378,7 @@
378378
};
379379

380380
if (!_.hasPoster) {
381-
initPlayer(_.$player.get(0));
381+
initPlayer(_.$player.get(0), _.autoPlay);
382382
} else {
383383
_.$element.one('click', function (ev) {
384384
ev.preventDefault();

0 commit comments

Comments
 (0)