Description | Hierarchy | Fields | Methods | Properties |
type TAdCustomVideoPlayer = class(TAdVideoTexture)
The base video player class. TAdCustomVideoPlayer expands TAdVideoTexture in the capability of drawing the video in many ways. Reading from files or streams is not supported in this class, use TAdVideoPlayer instead
![]() |
constructor Create(AParent: TAdDraw); |
![]() |
destructor Destroy; override; |
![]() |
procedure Draw(ASurface: TAdDraw; ADestRect: TAdRect); virtual; |
![]() |
property Proportional: boolean read FProportional write FProportional; |
![]() |
property Stretch: boolean read FStretch write FStretch; |
![]() |
property Center: boolean read FCenter write FCenter; |
![]() |
property Image: TAdImage read FImage; |
![]() |
constructor Create(AParent: TAdDraw); |
Creates an instance of TAdCustomVideoPlayer |
![]() |
destructor Destroy; override; |
Destroys the instance of TAdCustomVideoPlayer and all created objects. |
![]() |
procedure Draw(ASurface: TAdDraw; ADestRect: TAdRect); virtual; |
Draws the video on a surface and |
![]() |
property Proportional: boolean read FProportional write FProportional; |
Specifies wheter the image should be streched propertional. |
![]() |
property Stretch: boolean read FStretch write FStretch; |
If true, the video is streched to the rectangle defined in the draw procedure. |
![]() |
property Center: boolean read FCenter write FCenter; |
If true, the video is centered when drawing. |
![]() |
property Image: TAdImage read FImage; |
The image, that is actually drawn. |