audio_player icon indicating copy to clipboard operation
audio_player copied to clipboard

Uncaught TypeError: Cannot set property 'AudioPlayer' of undefined

Open malford89 opened this issue 9 years ago • 2 comments

Title says it for the most part. Used this JS in my foundation 6 project and I am getting AudioPlayer undefined for: this.AudioPlayer = (function() {

AudioPlayer.States = {
  Ready: 0,
  Playing: 1,
  Loading: 2,
  Error: 3
};

malford89 avatar Sep 06 '16 19:09 malford89

It means that AudioPlayer is not defined at the time you are using it, on the line AudioPlayer.States = ...

green-coder avatar Mar 17 '17 00:03 green-coder

It is possible to not preload mp3 until I click on play? I want to embed as a mp3 stream player, but in this state it loads forever the stream.

adrianmihalko avatar Apr 16 '17 10:04 adrianmihalko