Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   mpg in Delphi abspielen (https://www.delphipraxis.net/154565-mpg-delphi-abspielen.html)

Garfield 17. Sep 2010 06:30

AW: mpg in Delphi abspielen
 
Oder MPEG2Schnitt ansehen. :wink:

Chris92 .A 19. Sep 2010 10:06

AW: mpg in Delphi abspielen
 
Habs jetzt einigermassen mit VLC hin bekommen doch wenn ich das Video stoppen will stürtzt mir Delphi ab.

Delphi-Quellcode:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  StdCtrls, OleCtrls, AXVLC_TLB;

type
  TForm1 = class(TForm)
    VLCPlugin11: TVLCPlugin1;
    btnPlay: TButton;
    btnStop: TButton;
    btnPause: TButton;
    procedure FormCreate(Sender: TObject);
    procedure btnPlayClick(Sender: TObject);
    procedure btnStopClick(Sender: TObject);
    procedure btnPauseClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

    type
  VLCPlaylistMode = TOleEnum;

const
  VLCPlayListInsert     = $00000001;
  VLCPlayListReplace    = $00000002;
  VLCPlayListAppend     = $00000004;
  VLCPlayListGo         = $00000008;
  VLCPlayListCheckInsert = $00000010;

var
  Form1: TForm1;

implementation

{$R *.DFM}

procedure TForm1.FormCreate(Sender: TObject);
begin
        VLCPlugin11.addTarget('BKDMDL.mpg', null, VLCPlayListInsert, 0);
end;

procedure TForm1.btnPlayClick(Sender: TObject);
begin
        VLCPlugin11.play;
end;

procedure TForm1.btnStopClick(Sender: TObject);
begin
        VLCPlugin11.stop; {Problem---Problem---Problem}
end;

procedure TForm1.btnPauseClick(Sender: TObject);
begin
        VLCPlugin11.pause;
end;
end.

MFG Chris92 .A


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:09 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz