Angular 13 Youtube Video Player Example With Play & Pause Button to Embed Youtube Videos Using ngx-youtube-player Library in TypeScript

 

npm i ngx-youtube-player

 

 

Now include this library inside the app.module.ts file as shown below

 

 

 

 

app.component.ts

 

 

 

 

Here you need to replace the youtube video id of the video that you want to embed

 

 

app.component.html

 

 

Leave a Reply