Click here to Skip to main content
14,599,518 members
Rate this:
Please Sign up or sign in to vote.
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

Rate this:
Please Sign up or sign in to vote.

Solution 1


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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100