AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Sprachen und Entwicklungsumgebungen Object-Pascal / Delphi-Language Delphi Load AVI from another file resource and detect format of unsupported types
Thema durchsuchen
Ansicht
Themen-Optionen

Load AVI from another file resource and detect format of unsupported types

Ein Thema von WojTec · begonnen am 11. Aug 2014 · letzter Beitrag vom 11. Aug 2014
Antwort Antwort
WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#1

Load AVI from another file resource and detect format of unsupported types

  Alt 11. Aug 2014, 10:32
Delphi-Version: XE5
So, I created simple resource viewer for my purposes, all is oke, but I don't know how to load some resources types to preview: AVI, JPEG, PNG, GIF and RTF.

For AVI there is RT_AVI type, I can create hexadecimal preview, but I would like to see animation. I tried use TAnimation.ResName, but looks like it don't know location (file) from to load this resource. How I can load AVI preview?

For rest formats I wrote on beginning there are no RT_* values, please advice how to detect resource format (currently I can anly load as hex)? Have to create additional constants for this (but what values should has)?
  Mit Zitat antworten Zitat
arnof

Registriert seit: 25. Apr 2013
1.254 Beiträge
 
Delphi 10.1 Berlin Enterprise
 
#2

AW: Load AVI from another file resource and detect format of unsupported types

  Alt 11. Aug 2014, 14:56
at your systeme you need the compressdriver for playback the movie.

can windows mediaplay playback this movie ?
  Mit Zitat antworten Zitat
WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#3

Re: AW: Load AVI from another file resource and detect format of unsupported types

  Alt 11. Aug 2014, 17:17
can windows mediaplay playback this movie ?
Codec is not problem, problem is how to load resource from another file than self or system (common AVI) to TAnimate. Or maybe another simple component that can load from stream (I know resource name and have content in stream)?

Code:
Animate1.ResHandle:= { handle from CreateFile() };
Animate1.ResName := { name here };

// Here is how handle is received
Handle := CreateFile(PChar(FFileName), GENERIC_READ, FILE_SHARE_READ, nil, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0);
And what about other types?

Geändert von WojTec (11. Aug 2014 um 18:13 Uhr) Grund: Added code
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 07:19 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz