如何用vb.net在asp.net中播放声音? [英] how to play sounds in asp.net using vb.net?

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

问题描述

我在asp.net使用vb.net开发一个聊天应用程序。在这方面,如果用户从其他用户接收到新信息,那么我想打一个声音让他知道,他收到的消息。我想打一些.wav文件。可有一个人帮我这个?

I am developing a chat application in asp.net using vb.net. In this, if a user receives a new message from other users then I want to play a sound to let him know that he received a message. I wanted to play some .wav files. Can some one help me with this?

推荐答案

从一方面你有 BGSOUND ,可以播放你说的蜂鸣声,使用循环= 1 ,但不是所有的浏览器支持它。

From the one hand you have the bgsound that can play the beeps that you say, using loop=1, but not all browser support it.

http://msdn.microsoft.com/en -us /库/ ms535198(VS.85)的.aspx

<bgsound src="system-message.wav" id="mysound"></bgsound>

和从另一方面总是有Flash播放器,可以为隐藏页面上,并送他,你喜欢玩的文件。

and from the other hand there is always the flash player that can be as hidden on page and send him the file that you like to play.

一个例子: HTTP://www.phon.ucl .ac.uk /家/标记/音频/ play9.htm

此外,如何发挥声音的HTML5
https://developer.mozilla.org/en/Using_HTML5_audio_and_video

Also, how to play sound on HTML5 https://developer.mozilla.org/en/Using_HTML5_audio_and_video

所有的控制/ code必须使用JavaScript来完成。

All the control/code must be done using javascript.

这篇关于如何用vb.net在asp.net中播放声音?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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