locked
Is it possible to listen to an audio directly RRS feed

  • Question

  • User1216627406 posted

    Greetings again,

    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

    Tuesday, May 28, 2019 1:57 AM

Answers

  • User839733648 posted

    Hi simflex,

    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 

    Best Regards,

    Jenifer

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, May 28, 2019 7:38 AM

All replies

  • User839733648 posted

    Hi simflex,

    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 

    Best Regards,

    Jenifer

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, May 28, 2019 7:38 AM
  • User1216627406 posted

    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.

    Tuesday, May 28, 2019 1:22 PM
  • User475983607 posted

    HTML 5 complaint browser support playing audio.

    https://www.w3schools.com/html/html5_audio.asp

    Use the same code block syntax to set the audio src attribute like you did with the link.

    There are also JavaScript libraries which you can Google.

    Tuesday, May 28, 2019 3:13 PM