Forum for discussing general topics related to Couch.
4 posts Page 1 of 1
I am trying to pass a variable I created in an editable region to the src tag. when I use the
Code: Select all
<cms:show/>
tag, It doesnt play the audio but only plays when I use the raw link. Please what seems to be the problem?

This is my code:
Code: Select all
<audio  controls>
        <source src="<cms:show stream_link />" type="audio/mpeg">
       Your browser does not support the audio tag.
</audio>
Seems stream_link is not exactly the same as expected. Check page source in browser to see what's different..
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
@Trendoman For some odd reason the tags comes up empty like so

Code: Select all
<audio  controls>
   <source src="" type="audio/mpeg">
Your browser does not support the audio tag.
</audio>
Edit: Solved.
Apparently I was passing in an empty variable. @trendoman cleverly pointed that out. Thanks a lot. Couch rocks!!
4 posts Page 1 of 1