Autor Beitrag
Leuchtturm
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Sa 13.05.06 16:10 
Wenn ich ne .mpg Datei lade kommt jetzt ständig:
Gleitkommadivision durch null nicht möglich

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
Barzi
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 13.05.06 16:24 
irgendwie ist das alles komisch
Leuchtturm
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Sa 13.05.06 16:25 
ganz meine Meinung :D :D
und trotzdem probier ichs

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
Barzi
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 13.05.06 16:27 
Aber könnt5e man nicht eine Variable( z.B. a) so definieren
ausblenden Delphi-Quelltext
1:
a:=OpenDialog1.filename;					

und dann
ausblenden Delphi-Quelltext
1:
Mediaplayer1.filename:=a;					

definieren?

Moderiert von user profile iconraziel: Delphi-Tags hinzugefügt
Barzi
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 13.05.06 16:31 
Ich hab das mal mit ner String-Var ausprobiert. Ergebnis: Keine Fehler... aber auch kein Video...es bleibt wie es ist. :nixweiss:
Barzi
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 13.05.06 16:35 
Ich habs...


ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
procedure TForm1.Button1Click(Sender: TObject);
VAR a:String;
begin
OpenDialog1.Execute;
a:=OpenDialog1.FileName;
MediaPlayer1.FileName:=a;
MediaPlayer1.Display:=panel1;
MediaPlayer1.Open;
MediaPlayer1.Play;
end;



Das war der Code!!!
Danke für deine Hilfe!!! :beer:

Moderiert von user profile iconraziel: Delphi-Tags hinzugefügt
Leuchtturm
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Sa 13.05.06 16:37 
bei mir auch ich kann es zwar laden aber nicht abspielen.
Bei mir wurde vorhin das Panel 1 mal schwarz und dann nie wieder

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
Ydobon
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 42



BeitragVerfasst: Sa 13.05.06 17:11 
Sorry, an falscher Stelle auf Antworten gedrückt
Ironwulf
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 733
Erhaltene Danke: 2



BeitragVerfasst: Sa 13.05.06 17:58 
wenn das panel schwarz wird oder gar nichts passiert, liegts vllt daran as du den codec nich hast?
Leuchtturm
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: So 14.05.06 10:19 
ich habe es auch mit avi versucht da kommt genau wie bei mpeg: Kein MCI-Gerät gefunden

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
Ironwulf
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 733
Erhaltene Danke: 2



BeitragVerfasst: So 14.05.06 18:27 
der fehler kommt eigentlich nur wenn man keine datei ausgewählt hat oder keine media datei

post bitte nohcmal deinen code
Leuchtturm
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Mo 15.05.06 16:56 
Hier ist der komplette Code:
ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ExtCtrls, StdCtrls, MPlayer;

type
  TForm1 = class(TForm)
    MediaPlayer1: TMediaPlayer;
    Button1: TButton;
    Panel1: TPanel;
    OpenDialog1: TOpenDialog;
    Button2: TButton;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form1: TForm1;
  a: String;
implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
  MediaPlayer1.Play;
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  OpenDialog1.Execute;
  MediaPlayer1.FileName:= OpenDialog1.FileName;
  MediaPlayer1.open;
  MediaPlayer1.Display:=panel1;
end;

end.

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
Ironwulf
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 733
Erhaltene Danke: 2



BeitragVerfasst: Mi 17.05.06 20:54 
kurios funktioniert bei mir, kann also wirklich nur am video liegen
Leuchtturm
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Do 18.05.06 16:10 
ich versuchs bei mir mal weiter

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.