Hi.
Im just mucking around with the Tmediaplayer component, and get it to
play a song easily enough, but when I want to play a couple in a row, I
cant get it to play the first one....I loop through a listbox to get the
filenames...
this is what I have, but it loops through just playing the last
one....
for i := 0 to listbox2.items.count-1 do
begin
if listbox2.selected[i] then
begin
name := listbox2.Items[i];
mediaplayer1.FileName := directorylistbox1.Directory + '\' +
listbox1.items[listbox1.itemindex] + '\' + name;
mediaplayer1.Open;
mediaplayer1.Play;
mediaplayer1.Wait := true;
end;
end;
Any thoughts?
Cheers
Chris
______________________________________________________
The contents of this e-mail are privileged and/or confidential to the
named recipient and are not to be used by any other person and/or
organisation. If you have received this e-mail in error, please notify
the sender and delete all material pertaining to this e-mail.
______________________________________________________
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi