
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
mgmg-video-player
Advanced tools
This is angular component used as video player .
MgmgVideoPlayer requires Angular v9+ to run.
npm i --save-dev @types/video.js
npm i mgmg-ng-video-player
@import 'mgmg-video-player/src/lib/mgmg-video-player.css'
mgmgVidColor
:root{
--mgmgVidColor: #fff;
}
@import '../../mgmg-video-player/src/lib/mgmg-video-player.css';
In HTML:
<mgmg-video-player *ngIf="vidPlayerConf" [options]="vidPlayerConf"></mgmg-video-player>
In TS:
export class AppComponent {
vidPlayerConf: MgmgVidPlayer = {
controls: true,
preload: 'metadata',
autoplay: true,
sources: [{
src: '../assets/vids/vidplayer.mp4',
type:'video/mp4'
}]
}
}
Plugin | Description |
---|---|
fluid | When true, the Video.js player will have a fluid size. In other words, it will scale to fit its container at the video's intrinsic aspect ratio, or at a specified aspectRatio . |
aspectRatio | Puts the player in fluid mode and the value is used when calculating the dynamic size of the player. The value should represent a ratio - two numbers separated by a colon (e.g. "16:9" or "4:3"). |
height | Sets the display height of the video player in pixels. |
width | Sets the display width of the video player in pixels. |
preload | Suggests to the browser whether or not the video data should begin downloading as soon as the element is loaded. Supported values are: auto Start loading the video immediately (if the browser supports it). Some mobile devices will not preload the video in order to protect their users' bandwidth/data usage. This is why the value is called 'auto' and not something more conclusive like 'true'. metadata default value,Load only the meta data of the video, which includes information like the duration and dimensions of the video. Sometimes, the meta data will be loaded by downloading a few frames of video., none Don't preload any data. The browser will wait until the user hits "play" to begin downloading. |
autoplay | Play on load |
controls | Show or hide controls, default is true |
sources | video paths, It's an array but for this version the first video is just loaded . |
FAQs
This is angular component used as video player .
The npm package mgmg-video-player receives a total of 2 weekly downloads. As such, mgmg-video-player popularity was classified as not popular.
We found that mgmg-video-player demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.