Releases: arielfaur/ionic-audio
Releases · arielfaur/ionic-audio
v3.0.2
v2.3.3
v2.3.2
2.3.0
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
usingforRoot()
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
v1.3.0
- make tracks observable to allow dynamic assignment of scope property
track
inion-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
- 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
fixed DI issues
fixed scoping bug in directive ionAudioPlay
Thanks @danharper