如何在ASP.NET Web应用程序中播放声音文件。 [英] How to play a Sound file in a ASP.NET Web application.

查看:87
本文介绍了如何在ASP.NET Web应用程序中播放声音文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



目前我正在做一个控制呼叫中心的项目。因此,在该应用程序中,当我们添加新记录时,我们可以保存呼叫的声音文件。首先,我们将声音文件保存在共享位置,然后将链接保存在数据库中。然后我们检索保存的链接并单击它。然后Sound文件将通过客户端的媒体播放器播放。



你能帮帮我吗?我使用ASP.NET 2,.NET Framework 3.5和C#.NET



提前谢谢

解决方案

如果兼容性不是问题,请使用HTML5功能:



http://www.phon.ucl.ac.uk/home/mark/audio/play10.htm [ ^ ]



或看到这个:

http://www.javascripter.net/faq/sound/play。 htm [ ^ ]





有很多方法可以做到这一点



您可以使用嵌入式标签来播放它们,例如



 <  < span class =code-leadattribute> embedded     src   =  >  <   /嵌入式 >  





你可以查看这些链接



http://www.w3schools.com /html/html_sounds.asp



所有最佳


http://www.aspsnippets.com/Articles/Play-WAV-sound-files-in- ASP.Net-using-JavaScript.aspx [ ^ ]


Hi All,

currently I'm doing a project which controls a call center. So, in that application, When we add a new record we can save the call's sound file. First we save the sound file in a shared location, then save the link in the database. Then we retrieve the saved link and click on it. then the Sound file will play through the client's media player.

Can you please help me to do this. Im using ASP.NET 2 , .NET framework 3.5 with C#.NET

Thankz in advance

解决方案

If compatibility is not an issue use HTML5 features :

http://www.phon.ucl.ac.uk/home/mark/audio/play10.htm[^]

or see this :
http://www.javascripter.net/faq/sound/play.htm[^]


Hi,

there are plenty of ways to do that

you can play them by using embedded tag like

<embedded src=""></embedded>



you can check these links

http://www.w3schools.com/html/html_sounds.asp

All the Best


http://www.aspsnippets.com/Articles/Play-WAV-sound-files-in-ASP.Net-using-JavaScript.aspx[^]


这篇关于如何在ASP.NET Web应用程序中播放声音文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆