How to know if MediaPlayer opened or closed the file?
Posted on 2014-09-24
I use the component MediaPlayer and I'd like to know if my mediaplayer opened and is ready to play a file, is there a way to know about? Or if it closed the file that it was playing.
I tried to use this without opening any file to know it my mediaplayer is close or without any file ready to play.
if MediaPlayer1.Mode = mpNotReady Then
But it seems that this mpNotReady doesn't work as it should.