Commit b1f61c4
fix(youtube-player): apply startSeconds with disablePlaceholder and autoplay (#32570)
Fixes a bug where the YouTube player ignored the startSeconds input when
both disablePlaceholder and playerVars.autoplay were set. The player now
correctly seeks to the specified start time using seekTo() when the video
autoplays.
The issue occurred because the code only checked the playVideo parameter
to determine if seekTo should be called, but didn't account for videos
that autoplay through playerVars.autoplay = 1.
Fixes #32545
(cherry picked from commit 0302e4b)1 parent 964c39e commit b1f61c4
2 files changed
Lines changed: 25 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
679 | 679 | | |
680 | 680 | | |
681 | 681 | | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
682 | 698 | | |
683 | 699 | | |
684 | 700 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
636 | 640 | | |
637 | 641 | | |
638 | 642 | | |
| |||
0 commit comments