I Cant Open eand Play media files! - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

I Cant Open eand Play media files!

Can s'one show me the real code of opening and playing media files on a disk!!!!!!!!!

Comments

  • zibadianzibadian Posts: 6,349Member
    : Can s'one show me the real code of opening and playing media files on a disk!!!!!!!!!
    :
    Here's a tested code of opening and playing a media file:
    [code]
    procedure TForm1.Button1Click(Sender: TObject);
    begin
    if OpenDialog1.Execute then begin
    MediaPlayer1.FileName := OpenDialog1.FileName;
    MediaPlayer1.Open;
    MediaPlayer1.Play;
    end;
    end;
    [/code]
Sign In or Register to comment.