everyone, I'm working in a project of my university and I have a problem, music is played on my project using the library "Media", with whis library I can play the song or stop it, but I want to have a mute button where I can mute the song if I want and vice versa, can anyone help me?
Asked
Active
Viewed 318 times
0
-
Can you please show your existing code? – David.Warwick Oct 09 '21 at 03:06
-
Does this answer your question? https://stackoverflow.com/questions/32732578/how-to-effectively-mute-windows-media-player – David.Warwick Oct 09 '21 at 03:08
-
https://stackoverflow.com/questions/154089/mute-windows-volume-using-c-sharp – Hans Passant Oct 11 '21 at 09:48
-
Do you want to use the control `windows media playe`r to complete that operation? Or simply want to turn off the sound of the system? What method do you currently use to play music? The` soundPlayer` in Media can only play `.wav` files, and there is no way to set the volume. – Jiale Xue - MSFT Oct 12 '21 at 06:27
-
Please provide enough code so others can better understand or reproduce the problem. – Community Oct 12 '21 at 11:00