Play audio file

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
gmandelli
User
Posts: 32

Play audio file

Post by gmandelli »

Hello,
How can I play an audio file for which I have the full audio file URL in a database record using the html5 audio tag?

<audio controls="controls">
    <source src="http://www.mywebserver.com/audio/001.wav" type="audio/wav">
    Your browser does not support the HTML5 audio element.
   </audio> 

Many thanks,
John


MichaelG
User
Posts: 1111

Post by MichaelG »

You can create your custom view tag in Fields -> View Tag -> Custom View Tag


gmandelli
User
Posts: 32

Post by gmandelli »

Thanks a lot.

For others interested, if you have full url to audio file (wav) in the database field put put the following in Custom View Tag for the field:

<audio controls="controls">
    <source src={{{value}}} type="audio/wav">
    Your browser does not support the HTML5 audio element.
   </audio> 

Many thanks.

Best regards,
John


Post Reply