@alxpsr/mp3-player
v0.0.3
Published
## Description
Downloads
2
Readme
Angular Audio Player
Description
This is a library that works with Angular and uses partial http-requests for playing (aka stream playing)
I created it just for personal usage (since I don't have enough time for opensource maintain), but if you wanna use it read some details:
- Use Angular v18+
Howler
dependency is for audio stuffPeaks.js
dependency is for for drawing waveform
Contacts
If you wanna reach me, just mail me [email protected]
Usage
Required options
@NgModule({
imports: [
Mp3PlayerModule
]
})
class YourNgModule {
}
@Component()
class YourComponent {
public playerOptions: Mp3PLayerOptions = {
// Source of your audio
audioSrc: string;
// Source of your waveform data
audioWaveformSrc: string;
};
}
<alxpsr-mp3-player [options]="playerOptions"></alxpsr-mp3-player>