他就一个类.
TFastMemoryMediaplayer = class(TObject)
public
function Init(const MediaFileType: TMediaFileType;
RequstDataObj1, RequstDataObj2: TBaseRequstDataObj): Bool;
function GetCurrentTime(var nVal: integer): Bool;
function GetDuration(var nVal: integer): Bool;
//IDShowGrab
function GrabBMPToFile(const FileName: string): Bool;
//IVideoWnd Interface
//function SetVideoWndPosition(const nLeft, nTop, nWidth, nHeight: integer): Bool;
function HaveVideo(var bVal: Bool): Bool;
function IsFullScreen(var bVal: Bool): Bool;
function SetFullScreen(const bNewVal: Bool): Bool;
function SetVideoWnd(const nNewVal: integer): Bool;
function GetSourceRect(var nLeft, nTop, nRight, nBottom: integer): Bool;
//IPlayback Interface
function Seek(const nMicroSecond: integer): Bool;
function Stop(): Bool;
function Pause(): Bool;
function Play(): Bool;
function IsSeek(var bSeek: Bool): Bool;
//IAudioControl Interface
function HaveAudio(var bVal: Bool): Bool;
function SetAudioMute(const bNewVal: Bool): Bool;
function SetAudioVolume(const nNewVal: integer): Bool;
function SetAudioChannel(const nNewVal: integer): Bool;
public
constructor Create;
destructor Destroy;
override;
end;
kingqc说的比较符合.主要是流处理的很强悍.在Init的时候传递一个类进去.它需要数据的时候会调用你这个类.你的类把数据塞进去就可以了.这里数据相当于一个流.