Audio looping - Extending Chronoform's use

How to fix a disabled audio player in a ChronoForms custom code element.

Overview

The issue occurs when using a relative path for the audio source in a custom code element, which works in the form test but fails when embedded in an article.
Use the full absolute URL for the audio file source instead of a relative path to ensure it loads correctly in all contexts.

Answered
si simplelogic 07 Aug, 2014
Cannot beleive i got this far with the website in just few weeks. Thanks Chronoform team.

Tried to use the below in custom code element.
It shows and plays fine when testing via "test form", however, when added to article, the play button it is disabled and volume is muted.

<audio controls loop>
<source src=images/audios/MyMusic.mp3 type=audio/mpeg>
Please update your browser to hear the Music.
</audio>


Any suggestions?

Advanced thanks
Gr GreyHead 07 Aug, 2014
Answer
Hi simplelogic,

I suspect that the problem is with the src URL. Please try that with a full URL e.g. src='http://my_domain.com/images/audios/MyMusic.mp3'

Bob
This topic is locked and no more replies can be posted.