0.0.10 • Published 2 years ago

@inok/ngx-inok-player v0.0.10

Weekly downloads
14
License
MIT
Repository
github
Last release
2 years ago

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

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago