Embeded VCL Form with FMX Form


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?
frmvlc: TFrmVlc;
frmvlc := TFrmVlc.Create(self);
frmvlc.WindowsMediaPlayer1.URL := filename; // it play video but not show it.
self.AddObject(TFmxObject(frmvlc.Panel1)); error hier


Comments are closed.