Ionic Audio Versions Save

An audio player for Ionic 3 and Angular 4. Works with HTML 5 audio or native audio using Cordova Media plugin.

v3.0.2

6 years ago

Fixed AOT issues with Angular 4

v2.3.3

7 years ago

Minor fix to npm package

v2.3.2

7 years ago

Fix for production builds

Thanks @sfaizanh

v2.3.0

7 years ago

Updated module to Ionic 2.0.0

BREAKING CHANGES

  • Add Ionic Audio to tsconfig.json
{
  "compilerOptions": {
    "allowSyntheticDefaultImports": true,
    "declaration": false,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "lib": [
      "dom",
      "es2015"
    ],
    "module": "es2015",
    "moduleResolution": "node",
    "sourceMap": true,
    "target": "es5"
  },
  "files": [
    "node_modules/ionic-audio/dist/index.ts"
  ],
  "include": [
    "src/**/*.ts"
  ],
  "exclude": [
    "node_modules"
  ],
  "compileOnSave": false,
  "atom": {
    "rewriteTsconfig": false
  }
} 
  • Ionic Audio now needs to be configured via app.module.ts using forRoot()
import { NgModule, ErrorHandler, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';
import { AboutPage } from '../pages/about/about';
import { ContactPage } from '../pages/contact/contact';
import { HomePage } from '../pages/home/home';
import { TabsPage } from '../pages/tabs/tabs';

import { IonicAudioModule } from 'ionic-audio/dist';

@NgModule({
  declarations: [
    MyApp,
    AboutPage,
    ContactPage,
    HomePage,
    TabsPage
  ],
  imports: [
    IonicModule.forRoot(MyApp),
    IonicAudioModule.forRoot()
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    AboutPage,
    ContactPage,
    HomePage,
    TabsPage
  ],
  providers: [{provide: ErrorHandler, useClass: IonicErrorHandler}],
  schemas: [ CUSTOM_ELEMENTS_SCHEMA ]
})
export class AppModule {}

IonicAudioModule.forRoot() can take an audio provider instance as a parameter. If none is provided, the module will inject one in real time based on the current environment.

See documentation

v1.3.1

7 years ago
  • fixed minor bug where track is undefined when placing a progress bar outside the scope of ion-audio-track

v1.3.0

8 years ago
  • make tracks observable to allow dynamic assignment of scope propertytrack in ion-audio-track directive
  • updated built-in example to show this use case

Breaking change

ion-audio-progress-bar has now an isolated scope therefore it needs a reference to the track instance from the parent ion-audio-track directive. Simply pass it using the track property. This change is only valid for progress bars which are nested inside a ion-audio-track

<ion-audio-progress-bar track="myTrack" display-time></ion-audio-progress-bar>

v1.2.6

8 years ago
  • added minified and uglified script versions
  • refactor code into own scripf files
  • added global stop() method to MediaManager so that playback can be stopped immediately
  • minor performance tweaks

Thanks @matheusrocha89

v1.2.5

8 years ago

fixed DI issues fixed scoping bug in directive ionAudioPlay

Thanks @danharper

v1.2.4

8 years ago
  • fixed pause button bug where it was not possible to stop playback

v1.2.3

8 years ago
  • fixed slider bug to allow seeking-to when track is paused
  • fixed bug when play button is pressed intermittently
  • reduced playback delay to 300ms to improve responsiveness