[DUG] TMediaPlayer

David O'Brien Dave at iccs.co.nz
Tue Jun 9 20:24:37 NZST 2015


I am doing a simple media player in D2009 for a specific task and am having an issue with the buttons.
With a list of MP3's, I play the first (clicking the button), then when complete close and load the next then Play in code, but the play button doesn't disable and the stop button is disabled. I'm sure this used to work fine (haven't used it in ages though, probably since D7). Also the OnNotify event doesn't appear to work as expected (I would have thought this would fire when the mode changes).

Is there a known problem?

Basic code...

    MP.Close ;
    MP.FileName := Filename ;
    MP.Open ;
    MP.Play ;

Regards,
Dave.



More information about the Delphi mailing list