Topic: Cannot get sound/music when embed inside Wordpress [SOLVED]

Hello,

Sound works fine when I'm accessing directly to the gallery but when it's embed, it doesn't work.

Maybe a path problem, I've to duplicate the .mp3 file inside a wordpress directory ?

Best Regards,

Pascal

Re: Cannot get sound/music when embed inside Wordpress [SOLVED]

Audio will work fine in an embedded gallery so the problem is , as you suspect, most likely a path problem.
The value for the audioUrlMp3 configuration option can be a relative path (relative to the web page containing the gallery's embedding code) or an absolute path (starting with either http:// or https://).

In a WordPress environment where web pages are created dynamically, it can be difficult to know the location of the web page containing the gallery's embedding code (and it will depend on the permalink structure you set in WordPress's dashboard) so it might be easier to just use an absolute path for your audioUrlMp3 , e.g.:

audioUrlMp3="http://www.example.com/audio/track_0001.mp3"

I hope this helps.
However, if you continue to experience difficulties, then please post back with a link to your gallery's web page so that I can see (or hear) the problem for myself and hopefully help further.
Thank you.

Re: Cannot get sound/music when embed inside Wordpress [SOLVED]

Hello Steven,

Got it ! I should have tried the absolute path without contacting the support... I just hope I'm lazier than silly!

Many thanks anyway: great support as always.

All the best.

Pascal

Re: Cannot get sound/music when embed inside Wordpress [SOLVED]

You're welcome! I'm glad to hear that you've got it working.
Thank you for taking the time to let me know. It's most appreciated!

5 (edited by ioannis.stavrou 2023-04-13 16:05:49)

Re: Cannot get sound/music when embed inside Wordpress [SOLVED]

Sorry that it does not work for me:
The path
https://stavrou.synology.me:5001/as/sha … BNZS5tcDM=

plays the mp3 via browser

but the script
audioUrlMp3="https://stavrou.synology.me:5001/as/sharing/alDp68i1/L211c2ljL0lPQU5OSVMvTU9CWS9Nb2J5LVdhaXQgRm9yIE1lICgyMDA5KS8xMiBXYWl0IEZvciBNZS5tcDM="

does not work .

What is wrong with it?

Re: Cannot get sound/music when embed inside Wordpress [SOLVED]

@ioannis.stavrou

The audioUrlMp3 path must lead to an actual MP3 file (yours currently leads to a web page into which an audio file has been embedded).
Point your autioUrlMp3 directly to an MP3 file (just upload an MP3 file to your web server and use its absolute path) and all should be well.