Class TAdMediaHandler

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdMediaHandler = class(TObject)

Description

TAdMediaHandler is an abstract class that cares about handling the decoded media packets that come from the media decoder. For instance, a video handler should care about buffering the decoded video frames. A audio handler should buffer the audio data and pass it to the used audio engine.

See also
TAdMediaDecoderThread.RegisterMediaHandler
Registers a handler in the media decoder.

Hierarchy

Overview

Methods

Public procedure FeedPackage(var APckt: TAdMediaPacket); virtual; abstract;
Public procedure Notify(AState: TAdMediaDecoderState); virtual; abstract;
Public procedure FlushBuffer; virtual; abstract;
Public function NeedsData: Boolean; virtual; abstract;
Public function Overflow: Boolean; virtual; abstract;

Description

Methods

Public procedure FeedPackage(var APckt: TAdMediaPacket); virtual; abstract;

This function is called, when a media packet was decoded by the media decoder. The media handler should check the type of the package and store the data in an internal buffer and pass it to the graphics/audio engine.

Public procedure Notify(AState: TAdMediaDecoderState); virtual; abstract;

This method is called when the media handler should be notified by the media decoder about a special state change (e.g. the end of the stream).

Public procedure FlushBuffer; virtual; abstract;

This method is called when the media handler should flush its buffer.

Public function NeedsData: Boolean; virtual; abstract;

Return true, if your media handler experiences a buffer underrun and needs new data.

Public function Overflow: Boolean; virtual; abstract;

Return true, if your buffer contains data for more than one or two seconds video.

SourceForge.net Logo


Generated by PasDoc 0.11.0 on 2008-12-31 14:32:00