Board index » delphi » Looking to play MPG files from a list
Jeff Gyarmathy
![]() Delphi Developer |
Tue, 30 Dec 2003 02:50:09 GMT
Looking to play MPG files from a list
I trying to play a series of MPG videos from a list. The MediaPlayer plays
the first video just fine, when I try to set the MediaPlayer to play the next video; it does not play the video and attempts to play the next video. When the code gets down to the Play method again I get an Invalid Thread error. I am adding the code so that someone might be able to help me. With this code as well as giving me a possible replacement. procedure TFRM_Playing_Video.MediaPlayer1Notify(Sender: TObject); if NotifyValue = nvSuccessful then LB_Playing_Song.Caption := LB_Play_List_Song.Items[Song_Index]; song_file := path + '\media\Music_Videos\' + LB_Play_List_Song.ItemIndex := Song_Index; MediaPlayer1.Notify := False; Thanks, |