Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

hou to play .wav audio file in asp.net application

Posted on 2006-10-27
10
2,909 Views
Last Modified: 2006-12-02
hou to play .wav audio file in asp.net application
0
Comment
Question by:polythought
  • 3
  • 3
10 Comments
 
LVL 35

Expert Comment

by:YZlat
ID: 17819342
0
 
LVL 35

Expert Comment

by:YZlat
ID: 17819350
or

Public Declare Function playa Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long

Public Sub PlayWav(sFile As String)
    If Dir(sFile$) <> "" Then Call playa(sFile, SND_FLAG)
End Sub

PlayWav("c:\myfile.wav")

0
 
LVL 18

Accepted Solution

by:
Elvio Lujan earned 250 total points
ID: 17819668
you can make a link with the url where is the wav files

<a href='....file.wav'>play</a>
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 2

Assisted Solution

by:Thargol
Thargol earned 250 total points
ID: 17826769
Use an object-tag to embed windows-media player in your html-page and point it to the url of the wav-file.

See the this link for an example:http://www.mioplanet.com/rsc/embed_mediaplayer.htm
0
 
LVL 2

Expert Comment

by:Thargol
ID: 18027075
Hi TheLeaderone,

The comments from YZlat or not a solution the problem.
My solution and the one from lem2802 would work.

Regards,
Richard
0
 
LVL 35

Expert Comment

by:YZlat
ID: 18031687
Thargol, could you do me a favor and explain what is wrong with my solution
0
 
LVL 2

Expert Comment

by:Thargol
ID: 18032071
Hi, yZlat

Your solution is for vb.net, so a client application. The question was for asp.net, so a server based web application.

Btw in vb.net 8 (Framework 2.0) you can play audio in vb with the following line:

my.Computer.Audio.Play(filename)

But again this is not a way to play audio in a website.

Regards,
Richard


0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question