Windows media player suddenly stops playing




















Improve this question. Marcin Majewski Marcin Majewski 1 1 gold badge 13 13 silver badges 28 28 bronze badges.

Add a comment. Active Oldest Votes. Improve this answer. Any technical explanation for this? Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Do you know how I could solve this issue? Here are the functions that I used for adding the songs and the sounds:.

If you don't store a reference to the MediaPlayer s as field but only in local variables they are likely going to be gargabe collected. This might happen delayed as MediaPlayer uses unmanaged resources that would require a Dispose before being freed. To fix your problem consider storing a reference to the MediaPlayer s in a field. If you would like to repeat the audio which does not work very well you can subscribe the MediaEnded event in order set the position back to the beginning and start playing again.

Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 3 years, 8 months ago. Active 2 years, 11 months ago. Viewed times. What would cause this to happen? This thread is locked. You can follow the question or vote as helpful, but you cannot reply to this thread. I have the same question Report abuse. Details required :. Cancel Submit. In reply to JGreg7's post on December 28, There isn't an absolute way to do identify what codec that a media file uses, but the following are your best options: Play the file in Media Player.



0コメント

  • 1000 / 1000