lhz516 / react-h5-audio-player

React audio player component with UI. It provides time indicator on both desktop and mobile devices.
https://codepen.io/lhz516/pen/dyGpmgP
MIT License
608 stars 92 forks source link

Audio Player will NOT play #154

Closed gabrielishere closed 2 years ago

gabrielishere commented 2 years ago

I have installed the package into a basic create-react-app and attempted to set up the component following the documentation provided.

     <AudioPlayer
          autoPlay
          src="https://samplelib.com/lib/preview/mp3/sample-3s.mp3"
          onPlay={(e) => console.log("onPlay")}
          // other props here
        />

When changing the example URL out for a sample MP3 url the player does not appear to load the file and remains frozen. There are no errors that are logged.

Unsure of how to get this to work?

technophile-04 commented 2 years ago

Hey had the same issue try removing React.StrictMode

gabrielishere commented 2 years ago

problem solved.

Thank You