audio_player
audio_player copied to clipboard
Uncaught TypeError: Cannot set property 'AudioPlayer' of undefined
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
};
It means that AudioPlayer is not defined at the time you are using it, on the line AudioPlayer.States = ...
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.