Autor Beitrag
stberlin
Hält's aus hier
Beiträge: 10

WIN XP
D5 Enterprise
BeitragVerfasst: Do 06.05.04 14:54 
Hallo,
ich würde gerne auf Knopfdruck eine Sounddatei abspielen. Wie geht das und welche SOunddateien werden unterstützt???
stberlin
Chrissyx
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26

Win 98SE, Win XP
Delphi 2005
BeitragVerfasst: Do 06.05.04 15:05 
stberlin Threadstarter
Hält's aus hier
Beiträge: 10

WIN XP
D5 Enterprise
BeitragVerfasst: Do 06.05.04 15:54 
Kann man auch ein Video abspielen???
Chrissyx
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26

Win 98SE, Win XP
Delphi 2005
BeitragVerfasst: Do 06.05.04 16:00 
Na klar, das geht dann mit TMediaPlayer. Erstell einen auf der Form (Zu finden unter "System") und schreib das beim entsprechenden Button:
ausblenden Delphi-Quelltext
1:
2:
3:
MediaPlayer1.FileName := 'C:\video.avi';
MediaPlayer1.Open;
MediaPlayer1.Play;