in reply to Trouble with WMP and OLE

After digging around at the Media Player Object Documentation, it would seem that the thing (MediaPlayer.MediaPlayer) is actually an ActiveX control that needs to be embedded in an ActiveX container like a VB form or a web page in Internet Explorer. This was confirmed for me when I saw this. The author of that web page created a wrapper around media player and a scriptable object to create forms to embed ActiveX controls in. Give it a look as it may help. It relates specifically to WSH but you can translate alot of VBScript to perl using Win32::OLE.

Replies are listed 'Best First'.
Re: Re: Trouble with WMP and OLE
by Anonymous Monk on Mar 02, 2003 at 09:56 UTC
    Thanks for help, the funny thing is that I get About box show OK from code I have. So I assume that also other things should work - but I'm really novice to OLE, so maybe I'm doing something wron in code - maybe just turning WMP to be visible would be enough to get averything working. So maybe if someone explained to me how to set properties, how to call methods correctly with Perl and OLE that would be good start for me... Regards, Robert Rozman