Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(YouTubePlayer): startSeconds and ready not working #29874

Open
1 task
keatkeat87 opened this issue Oct 14, 2024 · 1 comment
Open
1 task

bug(YouTubePlayer): startSeconds and ready not working #29874

keatkeat87 opened this issue Oct 14, 2024 · 1 comment
Labels
area: youtube-player P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Comments

@keatkeat87
Copy link

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

<youtube-player width="256" height="144" videoId="mVjYG9TSN88" [startSeconds]="5" (ready)="ready = true" (stateChange)="stateChange = true"/>
<p>{{ ready }}</p> 
<p>{{ stateChange }}</p>

Image

[startSeconds] no function
(ready) no call

Reproduction

git clone https://github.com/keatkeat87/ng-mat-youtube-start-time-issue
click and play the video

Expected Behavior

  1. the video should start at 5 seconds
  2. the (ready) should emit

Actual Behavior

  1. the vide start at 0 second
  2. the (ready) no emit

Environment

Angular CLI: 18.2.8
Node: 20.11.1
Package Manager: yarn 1.22.19
OS: win32 x64

Angular: 18.2.8
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
... youtube-player

Package Version

@angular-devkit/architect 0.1802.8
@angular-devkit/build-angular 18.2.8
@angular-devkit/core 18.2.8
@angular-devkit/schematics 18.2.8
@schematics/angular 18.2.8
rxjs 7.8.1
typescript 5.5.4
zone.js 0.14.10

@keatkeat87 keatkeat87 added the needs triage This issue needs to be triaged by the team label Oct 14, 2024
@crisbeto
Copy link
Member

I suspect that this is an issue only with the placeholder behavior. As a workaround until it gets fixed, you can try setting disablePlaceholder="true".

@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent area: youtube-player and removed needs triage This issue needs to be triaged by the team labels Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: youtube-player P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
Development

No branches or pull requests

2 participants