Previous: Next To the Table of Content Next: Pause

- 4.47.2.19 -
Standard Units
MMedia Unit
TMMedia Object Methods

TMMedia.Open

Targets: Win32 only


MMedia Unit

Opens a multimedia device and loads a given file.

Declaration:
  procedure Open(FileName: String);
Remarks: You must specify the multimedia devise using the SetDevice method before you call this method. If the current device is a CD audio device, you may specify an initial track number as a FileName parameter.

The following example will create a MyMedia object, open a CD audio device and set the current position to the fifth track:
uses
  MMedia;
var
  MyMedia: TMMedia;

begin
  MyMedia.Create(0);
  MyMedia.SetDevice(MCI_CDAudio);
  MyMedia.Open('5');
  ...
end.



Previous: Next To the Table of Content Next: Pause
Next Table of Content Pause

- 4.47.2.19 -