Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrewjbateman/ionic-angular-audiorep
:clipboard: App to play audio files using audio library Howler, another great tutorial from Simon Grimm of Devtactic
https://github.com/andrewjbateman/ionic-angular-audiorep
angular angular16 audio-streaming howler howler-audio-library html5 ionic mp3-player scss-styles strict-types tutorial-code typescript4
Last synced: about 1 month ago
JSON representation
:clipboard: App to play audio files using audio library Howler, another great tutorial from Simon Grimm of Devtactic
- Host: GitHub
- URL: https://github.com/andrewjbateman/ionic-angular-audiorep
- Owner: AndrewJBateman
- License: mit
- Created: 2019-10-23T19:11:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-09T17:35:43.000Z (about 1 year ago)
- Last Synced: 2024-11-07T03:32:33.126Z (3 months ago)
- Topics: angular, angular16, audio-streaming, howler, howler-audio-library, html5, ionic, mp3-player, scss-styles, strict-types, tutorial-code, typescript4
- Language: TypeScript
- Homepage:
- Size: 7.5 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# :zap: Ionic Angular Audio Reproduction
* Ionic-Angular app to play mp3 audio files.
* Code from [Simon Grimm](https://www.youtube.com/channel/UCZZPgUIorPao48a1tBYSDgg) - see [:clap: Inspiration](#clap-inspiration) below, with updates & refactoring - e.g. use of ternery expressions. Updated to latest Ionic/Angular + dependencies. Strict mode enabled which required strict initialisation of properties, e.g. range, player to avoid errors.
* **Note:** to open web links in a new window use: _ctrl+click on link_![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/ionic-angular-audiorep?style=plastic)
![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/ionic-angular-audiorep?style=plastic)
![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/ionic-angular-audiorep?style=plastic)
![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/ionic-angular-audiorep?style=plastic)## :page_facing_up: Table of contents
* [:zap: Ionic Angular Audio Reproduction](#zap-ionic-angular-audio-reproduction)
* [:page\_facing\_up: Table of contents](#page_facing_up-table-of-contents)
* [:books: General info](#books-general-info)
* [:camera: Screenshots](#camera-screenshots)
* [:signal\_strength: Technologies](#signal_strength-technologies)
* [:floppy\_disk: Setup](#floppy_disk-setup)
* [:computer: Code Examples](#computer-code-examples)
* [:cool: Features](#cool-features)
* [:clipboard: Status \& To-do list](#clipboard-status--to-do-list)
* [:clap: Inspiration](#clap-inspiration)
* [:file\_folder: License](#file_folder-license)
* [:envelope: Contact](#envelope-contact)## :books: General info
* Uses the [Howler](https://www.npmjs.com/package/howler) audio library to play mp3 files.
## :camera: Screenshots
![screenshot](./img/audio-player.png)
## :signal_strength: Technologies
* [Ionic/angular v7](https://ionicframework.com/)
* [Angular v16](https://angular.io/)
* [Howler v2](https://www.npmjs.com/package/howler)## :floppy_disk: Setup
* `npm i` to install dependencies
* To start the server on _localhost://8100_ type: 'ionic serve'
* To start the server on a mobile using Ionic devapp and connected via wifi, type: 'ionic serve --devapp'
* The Ionic DevApp was installed on an Android device from the Google Play app store.## :computer: Code Examples
* `home.page.ts` function to toggle Howl player play and pause functions
```typescript
togglePlayer(pause: Boolean) {
this.isPlaying = !pause;
pause ? this.player.pause() : this.player.play();
}
```## :cool: Features
* Howler audio library API defaults to the [W3C Web Audio API](https://webaudio.github.io/web-audio-api/) and falls back to [HTML5 Audio](https://html.spec.whatwg.org/multipage/media.html#the-audio-element).
## :clipboard: Status & To-do list
* Status: Working
* To-do: Nothing## :clap: Inspiration
* [Simon Grimm 'How to Build a Simple Ionic 4 Audio Player'](https://www.youtube.com/watch?v=d_rKawKDq58).
## :file_folder: License
* This project is licensed under the terms of the MIT license.
## :envelope: Contact
* Repo created by [ABateman](https://github.com/AndrewJBateman), email: `[email protected]`