Gathering detailed insights and metrics for penpencil-player
Gathering detailed insights and metrics for penpencil-player
Gathering detailed insights and metrics for penpencil-player
Gathering detailed insights and metrics for penpencil-player
npm install penpencil-player
Typescript
Module System
Node Version
NPM Version
60.5
Supply Chain
91.2
Quality
79.6
Maintenance
50
Vulnerability
97.9
License
JavaScript (78.19%)
TypeScript (18.67%)
SCSS (2.74%)
HTML (0.4%)
Total Downloads
29,172
Last Day
62
Last Week
208
Last Month
813
Last Year
11,339
11 Stars
102 Commits
5 Forks
3 Watching
33 Branches
5 Contributors
Minified
Minified + Gzipped
Latest Version
2.5.30
Package Id
penpencil-player@2.5.30
Unpacked Size
653.20 kB
Size
148.47 kB
File Count
38
NPM Version
8.19.4
Node Version
16.20.2
Publised On
23 May 2024
Cumulative downloads
Total Downloads
Last day
34.8%
62
Compared to previous day
Last week
11.8%
208
Compared to previous week
Last month
20.6%
813
Compared to previous month
Last year
61.9%
11,339
Compared to previous year
2
PenpencilPlayer is based on videoJS library. You can install this via npm i penpencil-player
PenpencilPlayer is HTML5 video player based on videoJS library. Basically, I build this player for my personal use, I just wanted a player which can play multiple video formats like: MP4, Youtube, HLS.
####Feature:
i) Support Multiple video formats like: MP4, Youtube, HLS.
ii) Multiple video quality support
for both HLS and MP4 sources.
iii) Dynamic watermarking
including Text, Image and Link. (Combined or Individual)
iv) Forward and backward
seek button compatibility.
v) Setting button
with Quality and Speed options
v) Live video ui.
Note:- Because this library is only for personal use, I made lots of stuff hardcoded, like: Adding Plugins.
Step 1: Install the penpencil-player using npm i penpencil-player
Step 2: Paste these Styles and Script urls in your angular.json
"styles": [...
"node_modules/video.js/dist/video-js.css",
"node_modules/penpencil-player/videojs-seek-buttons/videojs-seek-buttons.css",
"node_modules/penpencil-player/videojs-setting-menu/videojs-setting-menu.css",
"node_modules/penpencil-player/videojs-watermark/videojs-watermark.css"
]
"scripts": [...
"node_modules/video.js/dist/video.js",
""node_modules/@videojs/http-streaming/dist/videojs-http-streaming.js",
"node_modules/penpencil-player/videojs-contrib-eme/videojs-contrib-eme.min.js",
"node_modules/penpencil-player/videojs-youtube/videojs-youtube.min.js",
"node_modules/penpencil-player/videojs-seek-buttons/videojs-seek-buttons.min.js",
"node_modules/penpencil-player/videojs-setting-menu/videojs-setting-menu.min.js",
"node_modules/penpencil-player/videojs-watermark/videojs-watermark.js",
"node_modules/penpencil-player/videojs-liveui/videojs-liveui.min.js"
]
Step 3: Add PenpencilPalyerModule
In AppModule
import: [..
PenpencilPlayerModule
..
]
Step 4: Add PenpencilPlayer component in your html.
<rs-penpencil-player [playerConfig]="playerConfig"></rs-penpencil-player>
Step 5: Provide player config:
playerConfig = {
poster: 'Poster Image Url',
liveui: false,
sources: [{
src: 'Video source url',
type: 'Video type' // video/mp4 (for mp4) ||application/x-mpegURL (for hls) || video/youtube (for youtube)
}],
autoplay: true,
startTime: 0,
fullScreenEnabled: false,
fluid: boolean; // fluid || fill || responsive
seekButtons: true, // Add plugin first
seekSeconds: 2, // Add plugin first
defaultQuality: 'auto', // Auto|'240'|'360'...
encryptionUri: 'http://localhost:8000/v1/videos/get-hls-key?videoId=videoId', // For Secured HLS only
query: '?key=value',
headers: [
{
authorization: 'Bearer 14fe4f2003f7633b6366a660fb30200f5f95218ef52272b50644fa023ce245ea'
}
], // For Secured HLS only
watermark: { // Add plugin first
text: string,
link: string,
imageUrl: string
}
};
Chnage listner is being detected on player config,
If you want to update player src try this.
playerConfig = {...} // replace your new player config with new video source
Currently supported video type
1: video/mp4 (for mp4)
2: video/youtube (for youtube)
3: application/x-mpegURL (for hls)
Step 5: Adding Plugins:
Download all the plugins and unzip it and paste all the plugins in project directory
i) Setting button for video quality and speed settings videojs-setting-menu-plugin.
"styles": [...
"node_modules/penpencil-player/videojs-setting-menu/videojs-setting-menu.css"
]
"scripts": [...
"node_modules/penpencil-player/videojs-setting-menu/videojs-setting-menu.min.js"
]
ii) Seek button for forward and backward videojs-seek-buttons-plugin.
"styles": [...
"node_modules/penpencil-player/videojs-seek-buttons/videojs-seek-buttons.css"
]
"scripts": [...
"node_modules/penpencil-player/videojs-seek-buttons/videojs-seek-buttons.min.js"
]
iii) Youtube video support videojs-youtube-plugin.
"scripts": [...
"node_modules/penpencil-player/videojs-youtube/videojs-youtube.min.js"
]
iv) Dynamic watermarking videojs-watermark-plugin.
"styles": [...
"node_modules/penpencil-player/videojs-watermark/videojs-watermark.css"
]
"scripts": [...
"node_modules/penpencil-player/videojs-watermark/videojs-watermark.js"
]
v) Video live ui support videojs-liveui-plugin.
"scripts": [...
"videojs-liveui/videojs-liveui.min.js"
]
vi) Video.js eme support videojs-eme-plugin.
"scripts": [...
"node_modules/penpencil-player/videojs-contrib-eme/videojs-contrib-eme.min.js"
]
videojs http-streaming videojs-hls-quality-selector videojs-contrib-quality-levels videojs-youtube videojs-seek-buttons
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 3/15 approved changesets -- score normalized to 2
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
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
68 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-12-16
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