Tocar som no cliente

.NET

18/07/2007

Tenho uma aplicação web que toca um som wav, porém só toca no servidor, mesmo quando um cliente clica no link para tocar o som, o som é tocado no servidor.

public static void PlaySound(String arquivo, int delay)
{
    if (File.Exists(arquivo))
    {
        System.Media.SoundPlayer soundPlayer = new System.Media.SoundPlayer(arquivo);
        soundPlayer.Play();
        System.Threading.Thread.Sleep(delay);
     }
}


Alguma sugestão para o som ser tocado apenas no cliente???


K4cid

K4cid

Curtidas 0
POSTAR