anars / blank-audio

Set of blank MP3 audio files
912 stars 118 forks source link

Chrome issue on 250ms file #6

Open lcherone opened 5 years ago

lcherone commented 5 years ago

In chrome im getting the following error, file is served though express (static route)

Resource interpreted as Document but transferred with MIME type audio/mpeg: "http://127.0.0.1:8080/assets/sounds/silence.mp3".

When you hit the file directly it will work, but not in an audio tag.

Are these files just headers with no data? And its basically seen by chrome as corrupt.

Geeze I just need to autoplay a bell in chrome via js without clicking lol im getting defeated by 3 lines of code lol

rawr51919 commented 7 months ago

In chrome im getting the following error, file is served though express (static route)

Resource interpreted as Document but transferred with MIME type audio/mpeg: "http://127.0.0.1:8080/assets/sounds/silence.mp3".

When you hit the file directly it will work, but not in an audio tag.

Are these files just headers with no data? And its basically seen by chrome as corrupt.

Geeze I just need to autoplay a bell in chrome via js without clicking lol im getting defeated by 3 lines of code lol

may have to override the header for that file to be the proper one so it'll play, dirty hack yet it might work :)