Search code examples
c#asp.net-mvcasp.net-web-apiserver-sidesoundplayer

Can't play SoundPlayer on server


I am doing website on C# ASP. My task is play a sound file on web. When i did it on my computer (IIS), it was working but when i up my source to server side it's not working, not any fail, it's still complete code but no sound! I wrote code on controller

Any ideas for it, sorry about my English. This is my code


Solution

  • Obviously, this won't work this will play audio on the server machine, you need to send your audio to the client and play it on the client side.

    Something like this