components icon indicating copy to clipboard operation
components copied to clipboard

bug(YouTubePlayer): startSeconds and ready not working

Open keatkeat87 opened this issue 1 year ago • 1 comments
trafficstars

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 avatar Oct 14 '24 05:10 keatkeat87

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 avatar Oct 14 '24 06:10 crisbeto

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.