Skip to content

Releases: arielfaur/ionic-audio

v3.0.2

09 Jun 20:25
Compare
Choose a tag to compare

Fixed AOT issues with Angular 4

v2.3.3

03 Mar 22:35
Compare
Choose a tag to compare

Minor fix to npm package

v2.3.2

03 Mar 21:14
Compare
Choose a tag to compare

Fix for production builds

Thanks @sfaizanh

2.3.0

11 Feb 20:12
Compare
Choose a tag to compare

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

27 Jul 15:38
Compare
Choose a tag to compare
  • fixed minor bug where track is undefined when placing a progress bar outside the scope of ion-audio-track

v1.3.0

19 Feb 20:25
Compare
Choose a tag to compare
  • 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

04 Dec 16:25
Compare
Choose a tag to compare
  • 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

28 Aug 21:43
Compare
Choose a tag to compare

fixed DI issues
fixed scoping bug in directive ionAudioPlay

Thanks @danharper

v1.2.4

04 Jul 14:58
Compare
Choose a tag to compare
  • fixed pause button bug where it was not possible to stop playback

v1.2.3

07 Jun 20:08
Compare
Choose a tag to compare
  • 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