How To Handle HTML5 Audio Source?

While converting older app connect bootstrap3 pages, I came across a page that uses html5 audio source code. Do I use the Dynamic Attribute link to set up the src="" for .mp3, .m4a, etc? See image:

Could I use the same Dynamic Attribute for images? As in: dmx-bind:src="audio_path"

Yes I am almost sure you can.

1 Like

Yes exactly - when you have AppConnect on the page - you can use dynamic attributes on any html tag.
Just prefix the real attribute with dmx-bind: and give it an expression as value.

Usually you can do it via the App Structure Properties inspector or domTree - where you see the “Dynamic Attributes ( + )”

But if you don’t see all the attributes available there for a specific tag - you can always add them in the code indeed.

2 Likes