Gathering detailed insights and metrics for angular-youtube-player
Gathering detailed insights and metrics for angular-youtube-player
Gathering detailed insights and metrics for angular-youtube-player
Gathering detailed insights and metrics for angular-youtube-player
@angular/youtube-player
Angular YouTube Player
penpencil-player
PenpencilPlayer is HTML5 video player based ob videojs library. It gathers all the neccessary plugins or library at single place to play videos like:- Vimeo, Youtube , hls (m3us). PenpencilPlayer require angular v6 or above.
ng2-youtube-player-mini
Angular 2 lightweight wrapper for Youtube player - AoT ready.
@vime/angular
Angular bindings for the Vime media player.
Angular component libraries: YouTube iframe player, slot machine button, and more
npm install angular-youtube-player
Typescript
Module System
Node Version
NPM Version
TypeScript (77.95%)
JavaScript (14%)
HTML (5.92%)
CSS (2.13%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
5 Stars
38 Commits
7 Forks
5 Watchers
2 Branches
49 Contributors
Updated on May 23, 2025
Latest Version
1.0.3
Package Id
angular-youtube-player@1.0.3
Size
30.11 kB
NPM Version
6.10.0
Node Version
12.2.0
Published on
Sep 30, 2019
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
3
An Angular component module for using the embedded YouTube (iframe) player.
1npm install angular-youtube-player
In the module (e.g. AppModule
) where it will be used:
1/* ... */ 2import { YTPlayerModule } from 'angular-youtube-player'; 3 4@NgModule({ 5 /* ... */ 6 imports: [ 7 YTPlayerModule, 8 BrowserModule 9 ] 10}) 11export class AppModule { }
There are two options are currently configurable:
1// config 2imports: [ 3 YTPlayerModule, 4 BrowserModule 5], 6providers: [{ provide: YTPlayerConfig, useValue: { shouldLoadAPI: true, multiplePlaying: false } }],
You could use either the constructor:
1import { YTPlayerConfig } from 'angular-youtube-player'; 2 3const useValue = new YTPlayerConfig(shouldLoadAPI, multiplePlaying);
or an object literal:
1const useValue = { shouldLoadAPI: true, multiplePlaying: false };
to build the config, both values are optional.
shouldLoadAPI = true
By default using this module would load the YouTube iframe player API, if you prefer to load it on your own, you could set it to false. Note that it would still require the API to be loaded.
multiplePlaying = false
When there are multiple instances of the player, it would only allow one to be playing by default (i.e. playing one would pause the other playing ones). You could set this to true if you want to allow multiple videos playing at the same time.
Here's a list of the component's input and output properties:
1@Input() videoId: string; 2@Input() domId: string; 3@Input() parameters: string|YT.PlayerVars; 4 5@Output() ready = new EventEmitter(); 6@Output() unstarted = new EventEmitter(); 7@Output() ended = new EventEmitter(); 8@Output() playing = new EventEmitter(); 9@Output() paused = new EventEmitter(); 10@Output() buffering = new EventEmitter(); 11@Output() cued = new EventEmitter();
videoId
The YouTube video id to play
domId
(optional)The DOM element id of the player
parameters
(optional)The player options, could be a query string or a object
Reference on IFrame Player Parameters
The output events are all from the IFrame Player API.
public
properties and methods1public get currentTime(): number 2public play(): void 3public pause(): void 4public cueVideoById(videoId: string, startSeconds?: number): void 5public loadVideoById(videoId: string, startSeconds?: number): void
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/17 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
139 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More