Description | Hierarchy | Fields | Methods | Properties |
type TAdVideoTexture = class(TAdCustomVideoTexture)
TAdVideoPlayer is extends TAdCustomVideoTexture by the capability of actually playing the video with the right speed. TAdVideoTexture is still not able to read video data from a stream or a file. This has to be done by manually overriding the protected ReadData method from TAdCustomVideoTexture. Instead you are also able to use the TAdVideoPlayer object from the unit AdVideo.
![]() |
constructor Create(AParent: TAd2dApplication); |
![]() |
procedure Play; virtual; |
![]() |
procedure Pause; virtual; |
![]() |
procedure Stop; virtual; |
![]() |
procedure Close; virtual; |
![]() |
procedure Move(ATimeGap:double); virtual; |
![]() |
property Texture; |
![]() |
property Time; |
![]() |
property Info; |
![]() |
property State: TAdVideoPlayerState read FState; |
![]() |
property CurrentFPS: integer read FFPS; |
![]() |
property Loop: boolean read FLoop write FLoop; |
![]() |
property Speed: double read FSpeed write SetSpeed; |
![]() |
property OnPlay: TAdNotifyEvent read FOnPlay write FOnPlay; |
![]() |
property OnStop: TAdNotifyEvent read FOnStop write FOnStop; |
![]() |
property OnPause: TAdNotifyEvent read FOnPause write FOnPause; |
![]() |
property OnNextFrame: TAdNotifyEvent read FOnNextFrame write FOnNextFrame; |
![]() |
property OnClose: TAdNotifyEvent read FOnClose write FOnClose; |
![]() |
constructor Create(AParent: TAd2dApplication); |
Creates an instance of TAdVideoTexture. |
![]() |
procedure Play; virtual; |
Starts to play the video. |
![]() |
procedure Pause; virtual; |
Pauses video playback. |
![]() |
procedure Stop; virtual; |
Stops video playback (resets the data source, clears all buffers) |
![]() |
procedure Close; virtual; |
Destroys all created video playback objects. |
![]() |
property Texture; |
Texture that can be accessed when you want to draw the film. |
![]() |
property Time; |
Time information about the current displayed frame. See also
|
![]() |
property Info; |
Information about the current video frame. See also
|
![]() |
property State: TAdVideoPlayerState read FState; |
Current state of the player. |
![]() |
property CurrentFPS: integer read FFPS; |
The FPS the video is currently played with. |
![]() |
property Loop: boolean read FLoop write FLoop; |
Set this property if you want the video to loop. |
![]() |
property Speed: double read FSpeed write SetSpeed; |
Use this property to vary playback speed. Default is 1. For example, 0.5 would mean that the video is played with the half speed. |
![]() |
property OnPlay: TAdNotifyEvent read FOnPlay write FOnPlay; |
Event that is triggered when playback starts. |
![]() |
property OnStop: TAdNotifyEvent read FOnStop write FOnStop; |
Event that is triggered when playback stops. |
![]() |
property OnPause: TAdNotifyEvent read FOnPause write FOnPause; |
Event that is triggered when video playback is pasued. |
![]() |
property OnNextFrame: TAdNotifyEvent read FOnNextFrame write FOnNextFrame; |
Event that is triggered, when a new frame is displayed. This event can e.g. be used to synchronize the video to an audio buffer. |
![]() |
property OnClose: TAdNotifyEvent read FOnClose write FOnClose; |
Event that is triggered when the decoder is closed. |