BryanWilhite / songhay-ng-workspace

Angular workspace of shared libraries and ‘studio floor’ client
MIT License
1 stars 0 forks source link

does @songhay/player-audio-progressive lib still need audio5js or equivalent? #30

Open BryanWilhite opened 5 years ago

BryanWilhite commented 5 years ago

there was activity for audio5js development last year and coverage for the Audio element is upwards of 95%

BryanWilhite commented 5 years ago

it looks like the cool kids are using Howler: https://github.com/goldfire/howler.js/issues/727

npm i --save howler
npm i --save-dev @types/howler
import { Howl } from 'howler'

@Component({
  selector: 'page-welcome',
  templateUrl: 'welcome.html'
})
export class WelcomePage {
  constructor(public navCtrl: NavController) {
     var sound = new Howl({
      src: ['http://server8.mp3quran.net/ahmad_huth/001.mp3'],
      html5 :true
    });
    sound.play();
   }
}