从Asp.net C#播放音频文件 [英] Play Audio Files from Asp.net C#

查看:507
本文介绍了从Asp.net C#播放音频文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我已经在My SqlServer2005中以图像数据类型存储了3Audio文件(Voice1,Voice2,Voice3).

Voice1图片
Voice2图片
Voice3图片


现在我想从Asp.Net C#播放这些文件.我正在使用Visual Studio2005.

我有一个按钮Play1.如果我按Play1按钮,则必须为我播放Voice1文件.

我对此一无所知.可以通过发送一些代码来帮助我吗?

请为此发送代码.

在Advance中致谢

Hi
I have Stored 3Audio Files(Voice1,Voice2,Voice3) in My SqlServer2005 in a Image Datatype.

Voice1 image
Voice2 image
Voice3 Image


Now I want to Play Those Files from Asp.Net C#.I am using Visual Studio2005.

I have a Button Play1. If I press the Play1 Button, Then Voice1 File has to Play for me.

I have No clue about it . can Any one Help me By sending some code.

Please Send Code For that.

Thanks in Advance

推荐答案

首先,请设计一个包含三个播放按钮的页面.每次发生单击事件时,您将从数据库中获取相关的音频文件以进行播放.

使用任何音频库 [ C#中的低级音频播放器 [ C#中的DirectShow MediaPlayer [
For start, design a page that has three play buttons. On click event of each you will fetch the related audio file from DB to play.

Use any of the audio library [^]to play the audio file for you, e.g.:
A low-level audio player in C#[^]
DirectShow MediaPlayer in C#[^]

Try now. If you get stuck then post what you tried and where you got stuck.


这篇关于从Asp.net C#播放音频文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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