Click here to Skip to main content
15,609,978 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
He all,

currently I'm doing a project. So, in that application, When we met a condition, then the Sound file will play through the client's media player.

Here is the code, which is not working, please help:

<div id="audply">


and code behind file contains

audply.InnerHtml = "<audio preload="\"auto\"" autoplay="\"autoplay\""> <source src="\"test-stun.wav\"" type="\"audio/wav\"" />";

What I have tried:

I have tried above code couple of time....
Updated 9-Mar-19 1:44am
Richard MacCutchan 9-Mar-19 7:43am    
Where is the test-stun.wav file located?
Member 14175995 11-Mar-19 9:51am    
Hi Richard, this fie is located in the web app root folder.

1 solution

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900