Class TAdMediaDecoderThread

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdMediaDecoderThread = class(TThread)

Description

TAdMediaDecoder thread cares about decoding the video data and passing it to the registered media handlers.

Hierarchy

Overview

Methods

Public constructor Create(ADecoder: TAdMediaDecoder);
Public destructor Destroy; override;
Public procedure RegisterMediaHandler(AHandler: TAdMediaHandler);
Public procedure FlushBuffers;
Public procedure Pause;
Public procedure Play;

Properties

Public property MediaHandlers: TList read FMediaHandlers;
Public property CriticalSection: TCriticalSection read FCriticalSection;
Public property Decoder: TAdMediaDecoder read FDecoder;

Description

Methods

Public constructor Create(ADecoder: TAdMediaDecoder);

Creates a new instance of TAdMediaDecoder. ADecoder specifies media decoder class that should be used to decode the video/audio data.

Public destructor Destroy; override;

Destroys the instance of TAdMediaDecoderThread.

Public procedure RegisterMediaHandler(AHandler: TAdMediaHandler);

Registers a handler in the media decoder.

Parameters
AHandler
specifies the media handler that should be registered within the media decoder. The media decoder gets its data via the "TAdMediaHandler.FeedPackage" method.
Public procedure FlushBuffers;

Flushs the buffers of the decoder and all reigstered media handlers. This function is for the seek and stop functionality.

Public procedure Pause;

Pauses decoding.

Public procedure Play;

Resumes decocding.

Properties

Public property MediaHandlers: TList read FMediaHandlers;

A list of all registered media handlers. Use the critical section property to synchronize access on this property.

Public property CriticalSection: TCriticalSection read FCriticalSection;

A critical section that should be used when accessing the "MediaHandlers" or the "Decoder" property.

Public property Decoder: TAdMediaDecoder read FDecoder;

A pointer on the media decoder.

SourceForge.net Logo


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