Autor Beitrag
florida
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 137

Windows 7 Home Premium, Windows XP Professional, Windows 2000
Delphi 2010 Architect
BeitragVerfasst: Do 23.06.11 13:55 
Wie kann man in Delphi eine asx-Datei öffnen, die sich auf einem Server befindet?
n1con
Hält's aus hier
Beiträge: 12
Erhaltene Danke: 1

Win7 Ultimate x64
Delphi 6, Delphi 2007
BeitragVerfasst: Do 23.06.11 13:56 
Du könntest sie mit IdHTTP aus den Indy Komponenten herunterladen und sie anschließend auslesen.
florida Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 137

Windows 7 Home Premium, Windows XP Professional, Windows 2000
Delphi 2010 Architect
BeitragVerfasst: Do 23.06.11 14:05 
OK, Danke. :-)
n1con
Hält's aus hier
Beiträge: 12
Erhaltene Danke: 1

Win7 Ultimate x64
Delphi 6, Delphi 2007
BeitragVerfasst: Do 23.06.11 14:29 
kein problem. brauchst du noch ein Beispiel wie man das macht oder kriegst du's hin?
florida Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 137

Windows 7 Home Premium, Windows XP Professional, Windows 2000
Delphi 2010 Architect
BeitragVerfasst: Do 23.06.11 14:39 
Naja, gerade ist mir aufgefallen, dass asx-Dateien nicht ladbar sind. Der Stream befindet sich auch unter einem MMS-Server.

Es wäre schon gut, wenn du mir ein Beispiel posten könntest, dass ASX-Dateien herunterlädt. Bei google finde ich nichts.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19314
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Do 23.06.11 14:54 
user profile iconflorida hat folgendes geschrieben Zum zitierten Posting springen:
Naja, gerade ist mir aufgefallen, dass asx-Dateien nicht ladbar sind.
So exakte Fehlerbeschreibungen sind wirklich sehr hilfreich...

Mein Standardbeispiel:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
uses
  IdHttp;

var
  HttpLoader: TIdHttp;
  PageContents: String;
begin
  HttpLoader := TIdHttp.Create;
  try
    PageContents := HttpLoader.Get('http://www.example.com');
  finally
    HttpLoader.Free;
  end;
end;
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8548
Erhaltene Danke: 477

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Do 23.06.11 14:58 
Was heißt denn "nicht ladbar"? ASX-Dateien kenne ich als Playlist-Format, und das ist ja nur eine Textdatei mit einer bestimmten Struktur. Wenn man die herunterlädt, kann man die z.B. in einem Memo anzeigen lassen. Oder halt parsen, um die darin enthaltenen Links zu Audio- oder Video-Dateien zu bekommen.

_________________
We are, we were and will not be.
florida Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 137

Windows 7 Home Premium, Windows XP Professional, Windows 2000
Delphi 2010 Architect
BeitragVerfasst: Do 23.06.11 15:01 
Oh, tut mir Leid. Ich habe die falsche Adresse genommen. Jetzt funktioniert es. Trotzdem Danke an euch alle. :-)