I could not find it but it is possible to get access to the player? I need to hide placeholder image and start the video by clicking on the placeholder. I need to trigger player.playVideo() somehow.
Edit: I achieved it by using @ViewChild
in ts:
@ViewChild('youtube') youtube?:YouTubePlayer;
public playVideo() {
this.youtube?.playVideo();
}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I could not find it but it is possible to get access to the player? I need to hide placeholder image and start the video by clicking on the placeholder. I need to trigger player.playVideo() somehow.
Edit: I achieved it by using @ViewChild
in ts:
@ViewChild('youtube') youtube?:YouTubePlayer;
public playVideo() {
this.youtube?.playVideo();
}