如何在ASP.NET Web应用程序中播放.wav文件? [英] How to play a .wav file in an ASP.NET web application?
本文介绍了如何在ASP.NET Web应用程序中播放.wav文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
他全部,
目前我正在做一个项目。所以,在那个应用程序中,当我们遇到一个条件时,Sound文件将通过客户端的媒体播放器播放。
这是代码,它不起作用,请帮助:
< div id = audply >
< / div >
和文件后面的代码包含
audply.InnerHtml =< audio preload =\auto \autoplay =\autoplay \>< source src =\test-stun.wav \\ \\type =\audio / wav \/>;
我尝试过的事情:
我已经尝试了几次代码....
解决方案
请参阅 asp.net autoplay - Google搜索 [ ^ ]。
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">
</div>
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....
解决方案
See asp.net autoplay - Google Search[^].
这篇关于如何在ASP.NET Web应用程序中播放.wav文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文