I want to use TWindowsMediaPlayer in an FMX Form. I create it with this code, but playing media causes an error:
Access violation at address 004080D6 in module ‘Project1.exe’. Read of address 00000500
How can resolve it?
var
frmvlc: TFrmVlc;
begin
frmvlc := TFrmVlc.Create(self);
frmvlc.WindowsMediaPlayer1.URL := filename; // it play video but not show it.
self.AddObject(TFmxObject(frmvlc.Panel1)); error hier
end;