@inok/ngx-inok-player
TypeScript icon, indicating that this package has built-in type declarations

0.0.10 • Public • Published

Installation

npm i @inok/ngx-inok-player --save

Documentation

Dependencies

Inputs (Properties)

  • file (string | File | <Promise<File>>Function) - Source of audio-file
  • fileName (?string) - Set filename for download audio-file (If not set, try parse from file)
  • autoplay (?boolean) - Autoplay of audio-file (default: false)
  • loop (?boolean) - Auto loop of audio-file (default: false)
  • preload (?'auto' | 'metadata' | 'none') - Preloading of audio-file (default: none)
  • group (?string) - Group of audio-files for pause, if selected another file of group with this name (default: default)
  • onError (?function) - Function, that will be executed if catch error for playing audio-file (default: empty function)

Example

<ngx-inok-player src="assets/1.mp3"
                 group="audio_records" 
                 [onError]="onError"></ngx-inok-player>
<ngx-inok-player src="assets/2.mp3"
                 group="audio_records" 
                 [onError]="onError"></ngx-inok-player>

License

The MIT License

Readme

Keywords

Package Sidebar

Install

npm i @inok/ngx-inok-player

Weekly Downloads

1

Version

0.0.10

License

MIT

Unpacked Size

365 kB

Total Files

18

Last publish

Collaborators

  • nchizhov