Class TAdVideoTexture

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdVideoTexture = class(TAdCustomVideoTexture)

Description

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.

Hierarchy

Overview

Methods

Public constructor Create(AParent: TAd2dApplication);
Public procedure Play; virtual;
Public procedure Pause; virtual;
Public procedure Stop; virtual;
Public procedure Close; virtual;
Public procedure Move(ATimeGap:double); virtual;

Properties

Public property Texture;
Public property Time;
Public property Info;
Public property State: TAdVideoPlayerState read FState;
Public property CurrentFPS: integer read FFPS;
Public property Loop: boolean read FLoop write FLoop;
Public property Speed: double read FSpeed write SetSpeed;
Public property OnPlay: TAdNotifyEvent read FOnPlay write FOnPlay;
Public property OnStop: TAdNotifyEvent read FOnStop write FOnStop;
Public property OnPause: TAdNotifyEvent read FOnPause write FOnPause;
Public property OnNextFrame: TAdNotifyEvent read FOnNextFrame write FOnNextFrame;
Public property OnClose: TAdNotifyEvent read FOnClose write FOnClose;

Description

Methods

Public constructor Create(AParent: TAd2dApplication);

Creates an instance of TAdVideoTexture.

Public procedure Play; virtual;

Starts to play the video.

Public procedure Pause; virtual;

Pauses video playback.

Public procedure Stop; virtual;

Stops video playback (resets the data source, clears all buffers)

Public procedure Close; virtual;

Destroys all created video playback objects.

Public procedure Move(ATimeGap:double); virtual;

Moves the timer of TAdVideoTexture on, so that playback continues.

Parameters
ATimeGap
specifies the time that has been passed since the last call of ATimeGap in seconds

Properties

Public property Texture;

Texture that can be accessed when you want to draw the film.

Public property Time;

Time information about the current displayed frame.

See also
TAdVideoPosition
Specifies the current position of the video.
Public property Info;

Information about the current video frame.

See also
TAdVideoInformation
Public property State: TAdVideoPlayerState read FState;

Current state of the player.

Public property CurrentFPS: integer read FFPS;

The FPS the video is currently played with.

Public property Loop: boolean read FLoop write FLoop;

Set this property if you want the video to loop.

Public 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.

Public property OnPlay: TAdNotifyEvent read FOnPlay write FOnPlay;

Event that is triggered when playback starts.

Public property OnStop: TAdNotifyEvent read FOnStop write FOnStop;

Event that is triggered when playback stops.

Public property OnPause: TAdNotifyEvent read FOnPause write FOnPause;

Event that is triggered when video playback is pasued.

Public 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.

Public property OnClose: TAdNotifyEvent read FOnClose write FOnClose;

Event that is triggered when the decoder is closed.

SourceForge.net Logo


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