Problems with sound
- From: Chris Leffer <chrisl@xxxxxxxx>
- Date: Wed, 25 May 2005 06:44:07 -0700
Hi.
I have a page that plays a .wav file from time to time, when the page
loads. Some of my customers say that the sound does not play and others
say that the sound plays very well. All of my customers are using
Internet Explorer 6.0+ .
What is the best or correct way to play a sound file from an asp.net
page? That's the code I am using:
Protected WithEvents plhSound As PlaceHolder
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim embWarning As New HtmlGenericControl("embed")
With embAlerta.Attributes
.Add("src", "warn.wav")
.Add("autostart", "true")
.Add("type", "audio/wav")
.Add("width", "0")
.Add("height", "0")
.Add("volume", "0")
End With
plhSound.Controls.Add(embWarning)
End Sub
Regards,
Chris Leffer
*** Sent via Developersdex http://www.developersdex.com ***
.
- Follow-Ups:
- Re: Problems with sound
- From: Steve C. Orr [MVP, MCSD]
- Re: Problems with sound
- From: vMike
- Re: Problems with sound
- Prev by Date: Re: Shoving dynamic code in the middle of a page.
- Next by Date: Re: How do I tell if the user if logged in?
- Previous by thread: Keep getting this error when trying to use Web Parts in VS2005 Beta 2. Why?
- Next by thread: Re: Problems with sound
- Index(es):
Relevant Pages
|
Loading