|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Sound with New System.Media.SoundPlayer()When I run the following code it does not play on the client. When the
server and client are on the same machine it plays??? Any help from anyone??? Dim errorSound As New System.Media.SoundPlayer() errorSound.SoundLocation = ErrorLocation errorSound.Load() errorSound.Play() "Roger" <roger_ow***@hotmail.com> wrote in message Hi,news:1163514649.300014.50400@m7g2000cwm.googlegroups.com... > When I run the following code it does not play on the client. When the > server and client are on the same machine it plays??? Any help from > anyone??? > > Dim errorSound As New System.Media.SoundPlayer() > errorSound.SoundLocation = ErrorLocation > errorSound.Load() > errorSound.Play() What is the content of ErrorLocation when you are on your server and on the client? Robinson wrote:
Show quoteHide quote > "Roger" <roger_ow***@hotmail.com> wrote in message Client: "C:\Websites\TimeSheets\wavs\compute.wav"> news:1163514649.300014.50400@m7g2000cwm.googlegroups.com... > > When I run the following code it does not play on the client. When the > > server and client are on the same machine it plays??? Any help from > > anyone??? > > > > Dim errorSound As New System.Media.SoundPlayer() > > errorSound.SoundLocation = ErrorLocation > > errorSound.Load() > > errorSound.Play() > > Hi, > > What is the content of ErrorLocation when you are on your server and on the > client? Server: "F:\Intranet\Applications\TimeSheets\wavs\compute.wav" I get no errors on both, just no sound from the server, so it is finding the wav file on the server. I know becuase I got errors with different paths before on the server. Try this:
My.Computer.Audio.Play(ErrorLocation, AudioPlayMode.Background) Robinson wrote:
> Try this: Thanks for your help but I get a message somthing like Audio is not a> > My.Computer.Audio.Play(ErrorLocation, AudioPlayMode.Background) member of My.Computer. How can I get it to be a member? Thanks, Roger
Show quote
Hide quote
"Roger" <roger_ow***@hotmail.com> wrote in message What version of Visual Studio/.NET are you working with?news:1163517843.626460.188270@b28g2000cwb.googlegroups.com... > > Robinson wrote: >> Try this: >> >> My.Computer.Audio.Play(ErrorLocation, AudioPlayMode.Background) > > Thanks for your help but I get a message somthing like Audio is not a > member of My.Computer. How can I get it to be a member? > > Thanks, > Roger > Robinson wrote:
Show quoteHide quote > "Roger" <roger_ow***@hotmail.com> wrote in message Visual Studio 2005 Professional Edition, Is there a way to add audio to> news:1163517843.626460.188270@b28g2000cwb.googlegroups.com... > > > > Robinson wrote: > >> Try this: > >> > >> My.Computer.Audio.Play(ErrorLocation, AudioPlayMode.Background) > > > > Thanks for your help but I get a message somthing like Audio is not a > > member of My.Computer. How can I get it to be a member? > > > > Thanks, > > Roger > > > > What version of Visual Studio/.NET are you working with? My.Computer?
Show quote
Hide quote
"Roger" <roger_ow***@hotmail.com> wrote in message Ahhh is this a website or a web control library? My.Computer.Audio isn't news:1163517843.626460.188270@b28g2000cwb.googlegroups.com... > > Robinson wrote: >> Try this: >> >> My.Computer.Audio.Play(ErrorLocation, AudioPlayMode.Background) > > Thanks for your help but I get a message somthing like Audio is not a > member of My.Computer. How can I get it to be a member? > > Thanks, > Roger > available in those kinds of project. If this is a web site, you need to specify a URL, rather than a file path ( I suspect ) with your media player control, possibly file:\\\myserver\bla\bla\bla or similar). I have not much experience of ASP.NET, so others might be able to confirm. Robin Robinson wrote:
Show quoteHide quote > "Roger" <roger_ow***@hotmail.com> wrote in message Thanks for your help! I tried a URL but it still does not work, no> news:1163517843.626460.188270@b28g2000cwb.googlegroups.com... > > > > Robinson wrote: > >> Try this: > >> > >> My.Computer.Audio.Play(ErrorLocation, AudioPlayMode.Background) > > > > Thanks for your help but I get a message somthing like Audio is not a > > member of My.Computer. How can I get it to be a member? > > > > Thanks, > > Roger > > > > Ahhh is this a website or a web control library? My.Computer.Audio isn't > available in those kinds of project. If this is a web site, you need to > specify a URL, rather than a file path ( I suspect ) with your media player > control, possibly file:\\\myserver\bla\bla\bla or similar). I have not much > experience of ASP.NET, so others might be able to confirm. > > > Robin sound on the client machine???? Roger ;-) "Robinson" <toomuchspamhaspassed@myinboxtoomuchtoooften.com> schrieb: I don't think the mentioned methods ('SoundPlayer' and 'My.Audio.Play') are > Ahhh is this a website or a web control library? My.Computer.Audio isn't > available in those kinds of project. If this is a web site, you need to > specify a URL, rather than a file path ( I suspect ) with your media > player control, possibly file:\\\myserver\bla\bla\bla or similar). I have > not much experience of ASP.NET, so others might be able to confirm. intended for use in Web applications. In both cases the sound will be played on the server and not on the client. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Application performance decrease after deleting rows
Reading value of a bit? how to use variable to refer to a control? Check for Duplicate Appointment Times Hiding Default Constructor in VB Express 2005 (Public Not Creatable in VB6) Directory.Getfiles search pattern Cannot open a database from a previous version of your application compare/check character against an array of chars - best practice? Help!! Dynamic Textbox, validation requiredFieldValidator Database & Datagrid issues |
|||||||||||||||||||||||