shivachrome
Joined: 30 Jun 2006
Posts: 2
|
Posted:
Fri Jun 30, 2006 6:16 pm Post subject:
How to use IWMPCore object passed in via SetCore from C# |
|
|
I am writing a WMP plugin (PLUGIN_TYPE_SEPERATEWINDOW) in C# and want to be able to use the core object returned from SetCore - but I dont know how to cast it back to a IWMPCore object so that I can call the pCore->put_URL(url) method on it.
private /*IWMPCore*/ object m_Core;
// IWMPPluginUI
public void SetCore([MarshalAs(UnmanagedType.IDispatch)]/*IWMPCore*/object pCore)
{
m_Core = pCore;
}
somehow I need to get an AxWindowsMediaPlayer or something similar in C# that represents the host Windows Media Player and be able to set its URL property (so that it navigates to the media at the url.)
I am really close - this is the last feature of my plug-in that I need to comlete - but I just cannot figure out how to do it!
Any help would be greatly appreciated.
Thanks,
Chris
|
|