Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3638

Angular Youtube - onReady

$
0
0

I am trying to wrap Angular/Youtube component, described here.

This stackblitz is the result.

The problem here is that

<youtube-player  #musicPlayer  [videoId]="extractVideoId(videoId)"  (ready)="onReadyInternal($event)"></youtube-player>

is not firing at all the onReadyevent. I never have my console log.

  onReadyInternal(event: any): void {    console.log(event, 'Is Ready');    this.onReady.emit(event);  }

I based my work on another question with a linked project.The onReady fires normally on this one, and the code looks very similar.


Viewing all articles
Browse latest Browse all 3638

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>