Skip to content

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

Closed
@keatkeat87

Description

@keatkeat87

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

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: youtube-player

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions