I'm working on a new FM radio station website, I was trying to use the default WordPress Audio Widget to play their live audio stream.
The problem was that the
Insert from URL option doesn't accept
I've tried to insert the following URL:
but it showed the following error:
Looks like this isn’t the correct kind of file. Please link to an audio file instead.
So I tried to save the same URL but with
.mp3 extension instead of
.m3u8, then tried to change the URL in the
wp_options table in the database, but it didn't work, and the whole widget was deleted.
Is there any way to extend the accepted file types of the WordPress Default Audio widget to accept the
NOTE: WordPress uses the www.mediaelementjs.com in their audio and video players which supports HLS sources by default, so I assume the audio widget can run the
.m3u8 URLs if we found a way to extend the accepted file types (currently are: