Hi,
I fixed your shortcode a bit. I also tested the new shortcode in my dev site and it works. Give the following shortcode a try.
[sc_embed_player fileurl="https://www.northampton-business-directory.com/wp-content/uploads/mp3/nton-intro.mp3" autoplay="true"]
Let me know how you go.
Thank you
Hi,
Thanks for the feedback. Unfortunately it did not work in Firefox, Chrome it works only the once even after reloading.
I put the code at the bottom of https://www.northampton-business-directory.com/covid-in-northamptonshire-business-solutions/
What is better, in paragraph or short-code block in WP?
Regards
Drachsi
Hi, there are many errors on the URL you shared above. This might be causing your current issue.
Please use the following documentation to troubleshoot these errors.
https://wordpress.org/support/article/using-your-browser-to-diagnose-javascript-errors/
Let me know how you go.
Thank you
Hi,
What is wrong with your code then? I put exactly what you wrote and it does not work in Chrome or Firefox. I have modified the php file and now have define(‘SCRIPT_DEBUG’, true);
Nothing different.
Regards
Drachsi
Hi, as far as I know there is nothing wrong with the shortcode I shared above. I have tested this shortcode in the following browsers.
-Google Chrome
-Firefox
-Microsoft Edge
-Seamonkey
It worked in all the browsers except Firefox because I had block autoplay media with sound active.
You might have an addon in those browsers blocking the autoplay of media, or maybe it is the browser cache that might be interfering.
Kind regards
I am having the same problem. The player shows up on the screen and if I manually push play it plays so there is no problem in the URL and the rest of the code was cut an paste from above.
If I look in the debug panel, BRAVE (the browser I am using) is reporting the following error:
soundmanager2-nodebug-jsmin.js?ver=5.7.1:37 Uncaught (in promise) DOMException: play() failed because the user didn’t interact with the document first. https://goo.gl/xX8pDD
Note: Same error and behaviour under Chrome.
-
This reply was modified 5 years, 3 months ago by
andburns.
@andburns, please start a new support thread.
Thank you
I’m having same issue in all browsers