Socket
Socket
Sign inDemoInstall

ngx-audio-player

Package Overview
Dependencies
14
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ngx-audio-player

A library for loading playing audio using HTML 5 audio specifically for Angular 7. (https://vmudigal.github.io/ngx-audio-player/)


Version published
Weekly downloads
1.1K
decreased by-0.63%
Maintainers
1
Install size
319 kB
Created
Weekly downloads
 

Readme

Source

Angular Audio Player

A library for loading playing audio using HTML 5 audio specifically for Angular 7. (https://vmudigal.github.io/ngx-audio-player/)

Table of contents

Demo

Working Demo

Installation

ngx-audio-player is available via npm and yarn

Using npm:

$ npm install ngx-audio-player --save

Using yarn:

$ yarn add ngx-audio-player

Getting Started

NgxAudioPlayerModule needs Angular Material and FontAwesome 5+.
Make sure you have installed below dependencies with same or higher version than mentioned.

"@angular/material": "^7.2.0"
"@fortawesome/angular-fontawesome": "^0.3.0"
"@fortawesome/fontawesome-svg-core": "^1.2.12"
"@fortawesome/free-solid-svg-icons": "^5.6.3"

Import NgxAudioPlayerModule in in the root module(AppModule):

// Import library module
import { NgxAudioPlayerModule } from 'ngx-audio-player';

@NgModule({
  imports: [
    // ...
    NgxAudioPlayerModule
  ]
})
export class AppModule { }

Usage

Material Style Basic Audio Player
HTML
<mat-basic-audio-player [audioUrl]="msbapAudioUrl" [title]="msbapTitle"></mat-basic-audio-player>
TS
// Material Style Basic Audio Player Title and Audio URL
msbapTitle = 'Mechanical Sundariye';
msbapAudioUrl = 'https://funksyou.com/fileDownload/Songs/128/30306.mp3';
Material Style Advanced Audio Player
HTML
<mat-advanced-audio-player [playlist]="msaapPlaylist"></mat-advanced-audio-player>
TS
import { Track } from 'ngx-audio-player';   
   
.   
.   
.   
   
// Material Style Advance Audio Player Playlist
msaapPlaylist: Track[] = [
  {
    title: 'Naalo Chilipi Kala',
    link: 'http://sensongsmp3.co.in/mp3/2018/Lover%20(2018)/Naalo%20Chilipi%20Kala%20(Theme%20Song)%20-%20SenSongsMp3.Co.mp3'
  },
  {
    title: 'Rakshassi',
    link: 'https://funksyou.com/fileDownload/Songs/128/30307.mp3'
  },
  {
    title: 'Mechanical Sundariye',
    link: 'https://funksyou.com/fileDownload/Songs/128/30306.mp3'
  },
];

See Demo

Versioning

ngx-audio-player will be maintained under the Semantic Versioning guidelines. Releases will be numbered with the following format:

<major>.<minor>.<patch>

For more information on SemVer, please visit http://semver.org.

Developer

Vijayendra Mudigal

License

The MIT License (MIT)

Keywords

FAQs

Last updated on 29 Dec 2018

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc