Description | Hierarchy | Fields | Methods | Properties |
type TAdMediaDecoderThread = class(TThread)
TAdMediaDecoder thread cares about decoding the video data and passing it to the registered media handlers.
![]() |
constructor Create(ADecoder: TAdMediaDecoder); |
![]() |
destructor Destroy; override; |
![]() |
procedure RegisterMediaHandler(AHandler: TAdMediaHandler); |
![]() |
procedure FlushBuffers; |
![]() |
procedure Pause; |
![]() |
procedure Play; |
![]() |
property MediaHandlers: TList read FMediaHandlers; |
![]() |
property CriticalSection: TCriticalSection read FCriticalSection; |
![]() |
property Decoder: TAdMediaDecoder read FDecoder; |
![]() |
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. |
![]() |
destructor Destroy; override; |
Destroys the instance of TAdMediaDecoderThread. |
![]() |
procedure RegisterMediaHandler(AHandler: TAdMediaHandler); |
Registers a handler in the media decoder. Parameters
|
![]() |
procedure FlushBuffers; |
Flushs the buffers of the decoder and all reigstered media handlers. This function is for the seek and stop functionality. |
![]() |
procedure Pause; |
Pauses decoding. |
![]() |
procedure Play; |
Resumes decocding. |
![]() |
property MediaHandlers: TList read FMediaHandlers; |
A list of all registered media handlers. Use the critical section property to synchronize access on this property. |
![]() |
property CriticalSection: TCriticalSection read FCriticalSection; |
A critical section that should be used when accessing the "MediaHandlers" or the "Decoder" property. |
![]() |
property Decoder: TAdMediaDecoder read FDecoder; |
A pointer on the media decoder. |