
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
ngx-audio-control
Advanced tools
Audio Player control for angular projects with speed control by native player in browser (HTML5)
ngx-audio-control is available via npm and yarn
$ npm install ngx-audio-control --save
$ yarn add ngx-audio-control
Import NgxAudioPlayerModule in in the root module(AppModule):
// Import library module
import { NgxAudioPlayerModule } from 'ngx-audio-player';
@NgModule({
imports: [
// ...
NgxAudioPlayerModule
]
})
export class AppModule { }
HTML
<ngx-audio-control [fileList]="files"
[linear]="true"
[download]="true"
></ngx-audio-control>
Ts
@Component({
selector: 'app-player',
templateUrl: './player.component.html',
styleUrls: ['./player.component.scss']
})
export class PlayerComponent {
files = [
'assets/files/a.mp3',
'assets/files/b.mp3',
'assets/files/c.mp3',
];
}
Name | Description | Type | Default Value |
---|---|---|---|
[showList] | Show play list button | boolean | true |
[download] | Show download button | boolean | false |
[showFileName] | Display filename in header | boolean | true |
[showSpeed] | Show speed control | boolean | true |
[showVolume] | Show volume control | boolean | true |
[linear] | Display vertically or horizontally between control buttons and range seeker | boolean | false |
[preload] | This enumerated attribute is intended to provide a hint to the browser about what the author thinks will lead to the best user experience | 'none', 'metadata' , 'auto' | 'metadata' |
🔰 for seek audio file in chrome:
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Accept-Ranges" value="bytes" />
</customHeaders>
</httpProtocol>
</system.webServer>
<IfModule mod_headers.c>
Header set Accept-Ranges bytes
</IfModule>
http {
server {
location / {
add_header Accept-Ranges bytes;
}
}
}
💻Mohammadreza samani | FrontEnd Developer
If you like my work you can buy me a 🍺 or 🍕
FAQs
Audio Player control for angular projects with speed control by native player in browser (HTML5)
The npm package ngx-audio-control receives a total of 1 weekly downloads. As such, ngx-audio-control popularity was classified as not popular.
We found that ngx-audio-control 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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.