I've got a project that uses IWMPPlayer4
, the ActiveX interface to Windows Media Player. Downloading and playing a video from the Internet is easy: just call put_URL
, and it connects to the video and begins to play it.
But what if I want to tell it to load up a video from a certain URL but not begin to play it yet? It's not clear from the documentation I've seen how I would do that, but I figure there has to be a way to accomplish it. Does anyone know how?
I tried calling get_controls
and then either the Pause
or Stop
methods on the resulting IWMPControls interface immediately after calling put_URL
, but both caused the same problem: no media actually loaded, and clicking the Play button on-screen plays nothing.