Last post May 28, 2019 03:13 PM by mgebhard
May 28, 2019 01:57 AM|simflex|LINK
When a user clicks the link below to listen to an audio message, a link pops up on the status bar asking the user to download or save.
<td><a href='<%= "http://server/folder/" & build.Text & "/noop_" & id.Text & ".wav" %>'>Listen</a></td>
We would like the message to start playing the audio when a user clicks the link without having to open or save it first.
Is this possible?
Thanks in advance
May 28, 2019 07:38 AM|Jenifer Jiang|LINK
According to your description and code, I've made tests and have the following result.
I've found that when you click <a> tag to link the wav file, it will turn to the link page and play the audio in most modern browsers except IE.
So I'd like to ask that what the browser you'are using?
If it is IE, I think that this is browser's behaviour and I've also checked that in IE there seems no any good solution for this.
If you're using other browsers, please provide the browser's version so that it will be easier to reproduce your issue.
Besides, here is an online sound examples site that can help to test: https://ccrma.stanford.edu/~jos/waveguide/Sound_Examples.html
May 28, 2019 01:22 PM|simflex|LINK
Thank you Jenifer.
The other browser open a dialog box with Open or Save.
IE gives you a link with Open or Save.
So, regardless of browser, you get Open or Save. IT doesn't play automatically.
I suppose we have to use it as is.
May 28, 2019 03:13 PM|mgebhard|LINK
HTML 5 complaint browser support playing audio.
Use the same code block syntax to set the audio src attribute like you did with the link.