Guest_imported
New member
- Jan 1, 1970
- 0
How is it possible to change the FileName at run-time, so that the video is changed by clicking a button?
I used this code, but the video in the Panel didn't change to the next videoclip.
procedure TsomeForm.NextClick(Sender: TObject);
var
videofile:string;
begin
{Prepare for video}
Videofile:= X;
If FileExists(Videofile)
then MediaPlayer1.filename:= Videofile;
end;
X is a proper file name e.g. C:\xyz\xyz.mpeg
Your help will be greatly appreciated.
I used this code, but the video in the Panel didn't change to the next videoclip.
procedure TsomeForm.NextClick(Sender: TObject);
var
videofile:string;
begin
{Prepare for video}
Videofile:= X;
If FileExists(Videofile)
then MediaPlayer1.filename:= Videofile;
end;
X is a proper file name e.g. C:\xyz\xyz.mpeg
Your help will be greatly appreciated.