Vcl.MPlayer.TMediaPlayer.Error

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Error: Longint read FError;

C++

__property int Error = {read=FError, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Vcl.MPlayer.pas
Vcl.MPlayer.hpp
Vcl.MPlayer TMediaPlayer

Description

Specifies the MCI error code returned by the media control method.

Error specifies the MCI error code returned by the most recent media control method (Back, Close, Eject, Next, Open, Pause, PauseOnly, Play, Previous, StartRecording, Resume, Rewind, Step, or Stop). The ErrorMessage property describes the Error.

The error code returned by media control methods are the same error code returned by the mciSendCommand function. The message describing the error code is stored in the ErrorMessage property.

The value of Error is zero if the most recent media control method didn't cause an error. If a method results in an error, a value other than zero is stored in Error. If the error occurs during the opening of the device, an EMCIDeviceError exception occurs.

See Also