How to make Sounds via VS.Net ASP.Net VB app

H

Hugh O

Hi,
I have an MS Access 2003 app with heavy VB code that successfully controls
the execution of sound wav files. I am re-writing that into an internet
app, using VS.Net 2003 and ASP.Net and VB code, I guess along with HTML and
JavaScript.

Where do I get the documentation and possible code examples to be able to
manage the wav execution with an Internet app? Can this be controlled via
some VB code or is it entirely in HTML or JavaScript?

Thanks,
hugh
 
P

Peter Huang [MSFT]

Hi

I think you need to use the ActiveX to do the job.
e.g.
You can just drag&drop a mediaplayer control onto the webpage, and set the
url to a wav file.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
C

Cor Ligthert [MVP]

Hugh,

In addition to Peter, I would have a look on Internet for some javascript.

Be aware that the VB code is processed on your server. It has not much sense
to play the sound on that computer in my idea.

I tell this because using JavaScript gives seldom problems on a client
computer. The change that a user is loading an Active X is almost zero if it
is not from companies that are really very trusted to be secure in this.

Cor
 
H

Hugh O

Cor, Peter,

I was assuming that the actual execution of the sound would be on the client
via say JavaScript. But my app would require a large number of wav files
and the selection of which to play at any user ENTER or CLICK would have to
be managed at the server via VB.Net (I was hoping).

I both understand what you are saying about advantages and the limitations
of an Active X control. But I must confess ignorance. I do not have any
media player or any active X controls in my toolbox selection. How do I get
one and info on its use?

Is this something like I would have to deal with some org like Real
Solution's Real Audio? I assume that Real Player is widely distributed and
used. Would they give me a control I could add to the toolbox. Another
question of ignorance. What is the difference between a Active X control
and what is called a Plug-in?

It is obvious that I need more knowledge on this subject. Where do I get
that information or training if necessary. I am very serious about this
effort and will be willing to pay in time or money. I have been working 3
years of my own time on this app to first develop a Windows app on the PC
and now want to implement it instead on the web.

thanks,
hugh
 
C

Cor Ligthert [MVP]

Hugo,

If you add an existing item in your solution explorer and drag that item on
the page than there will be a HREF created if you run and click on that,
than the default player will be selected. (You have to enable sound in your
browser for sound). You can try that to get an idea.

Another option is to use the bgsound, which you don't see in ASPNET.

http://msdn.microsoft.com/library/d...op/author/dhtml/reference/objects/bgsound.asp

I hope this helps,

Cor
 
A

Andrew Morton

Hugh said:
It is obvious that I need more knowledge on this subject. Where do I
get that information or training if necessary.

Google for javascript play sound
I was assuming that the actual execution of the sound would be on the
client via say JavaScript. But my app would require a large number
of wav files

Sounds like you'll need a JavaScript preloader script too.

Don't forget that you cannot assume that the end-user will hear the sounds.

Andrew
 
H

Hugh O

Thanks Everyone (Peter, Cor, Andrew, and Michel)
That gives me a lot of thought and options to track down, learn, and play.

thanks,
hugh
m.posseth said:
well this is verry simple <BGSOUND SRC="hello.wav">

some handy links

http://www.w3schools.com/media/media_browsersounds.asp
http://simplythebest.net/sounds/sound_guide.html
http://members.aol.com/jaynecg/htmcode3b.html

i would go for the following aproach create a hidden frame , now you can
control from your gui page the sounds that need to play by just loading
the page in the hidden frame

regards

hth

Michel Posseth [MCP]







Hugh O said:
Hi,
I have an MS Access 2003 app with heavy VB code that successfully
controls the execution of sound wav files. I am re-writing that into an
internet app, using VS.Net 2003 and ASP.Net and VB code, I guess along
with HTML and JavaScript.

Where do I get the documentation and possible code examples to be able to
manage the wav execution with an Internet app? Can this be controlled
via some VB code or is it entirely in HTML or JavaScript?

Thanks,
hugh
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top