Beep.Play()

0
0

Hi

System.Media.SystemSounds.Beep.Play() not working on client

 

 

  • You must to post comments
0
0

Hi HSoft,

If you’re using Wisej 2.1, you should use Application.Play() when trying to play audio in the browser.  It creates a new JS Audio object (see https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement) and plays the audio on the client that way.

The SystemSounds class is related directly to the Control Panel configuration for sounds, so if you use that, you’ll hear the sound on your server, but not the clients accessing through the browser.

Alternatively, you can import Wisej.Web.VisualBasic and use “this.Beep()” to play audio on the client as well!

HTH,

Levie

  • Levie (ITG)
    Hi HSoft, does this solve your issue? Let me know if I can help! Best, Levie
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.