Page 1 of 1

Calling Window's Media Player in Form

Posted: Sun Dec 03, 2006 10:27 am
by mkhalil
How can we call Window's Media Player in a form by using OCX/Active X, Please help me.

Posted: Sat Dec 09, 2006 6:35 am
by fahedakhter
1) Import the Media Player Library Interface.
2) And Write this code on any trigger

Declare
Pla Oleobj;
Begin
Pla := :Item('Media').Interface;
Mplayer.FileName(Pla,'FileName');
Mplayer.Play(Pla);
End;

Regards
Fahed

Posted: Thu Dec 14, 2006 12:42 pm
by mkhalil
Thanks a lot Fahed. I will try it now and Inshallah it will work well.