First off, does your server support anonymous FTP connections?
I’ve looked at the code for the audio shortcode and it doesn’t seem to check whether the protocol is http or ftp: https://developer.wordpress.org/reference/functions/wp_audio_shortcode/
Please provide a link to a page on your site where we can see this. Thanks. Note: Your link will be public and we will not later remove it.
Thread Starter
wzshop
(@wzshop)
Hi,
Thanks for getting back to me.
The FTP server does allow anonymous connections. I can download the MP3 file anonymously, but when embedding it in the audio shortcode, it won’t play.
Firefox console says: NotSupportedError: The media resource indicated by the src attribute or assigned media provider object was not suitable.
-
This reply was modified 6 years, 1 month ago by
wzshop.
Thread Starter
wzshop
(@wzshop)
Hi,
Just found that Chrome and FF (probably Edge also) are blocking FTP requests (embeds) in a http(s) webpage: https://www.bleepingcomputer.com/news/software/firefox-follows-chrome-and-blocks-the-loading-of-most-ftp-resources/
Not sure however, if this is also the case for FTPS URLs.
-
This reply was modified 6 years, 1 month ago by
wzshop.
If I recall correctly, Firefox is removing support for ftp and Chrome is headed that way. So, it would be helpful if your FTP server also accepted
HTTP/HTTPS requests.
https://www.zdnet.com/article/firefox-to-remove-support-for-the-ftp-protocol/