Bruce Button
Bruce Button

Reputation: 55

Delphi TMediaPlayer gives EMCIDeviceError when filename is not specified

I have a TMediaPlayer instance on a form in a Delphi VCL project (32 bit) (Delphi RAD Studio 10.1 Berlin). Working on Windows 10 Professional (64 bit).

I would like to assign the filename at runtime (since I can't predict that a user will have any particular file available). However, if I do not specify FileName in the media player's properties in the GUI interface, I get the error "Exception EMCIDeviceError in module xxx.exe at [address]. Cannot determine the device type from the given filename extension."

I am able to change the filename at runtime, but that might be too late if the user doesn't have the specified file.

Is there some setting that will instruct the media player to wait for a filename before looking for the one that is (or isn't) specified in the GUI?

Any help would be appreciated. Thank you!

Upvotes: 1

Views: 823

Answers (0)

Related Questions