sound player is not working

sound player is not working

Page 1 of 1

1 Replies - 4534 Views - Last Post: 10 February 2010 - 09:01 AM Rate Topic: -----

#1 riteshroushan  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 10-February 10

sound player is not working

Posted 10 February 2010 - 12:25 AM

hi , i m usning server side code for playing sound at client side . my sound file at my server. At server it is working fine. But at client side it is not working. when i want to play at client side , it is automatic play at server.

on page load code is

string path = "song.wav";
player = new System.Media.SoundPlayer(path);
Stream SoundResource;
player.SoundLocation = path;
player.Load();
player.Stop();

and play button
player.play();

pls help me.

With Regards
Ritesh

Is This A Good Question/Topic? 0
  • +

Replies To: sound player is not working

#2 Jayman  Icon User is offline

  • Student of Life
  • member icon

Reputation: 418
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

Re: sound player is not working

Posted 10 February 2010 - 09:01 AM

You will have to upload the file to the clients computer, before you can play it for the client or embed it in the HTML using the EMBED tag.

You might want to check out some of the third party libraries to accomplish this.

http://www.aspnetaudio.com/
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1