Click here to Skip to main content
16,015,072 members

Comments by john00 (Top 4 by date)

john00 23-Jun-13 9:46am View    
Thanks for looking into that.

I found AxInterop.WMPLib.dll here: C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples\multimedia\WMP
john00 23-Jun-13 8:51am View    
using AxWMPLib; //windows Media Player
using WMPLib;//windows Media Player

Reference would be:
AxInterop.WMPLib.dll
Interop.WMPLib.dll

Here is the complete code:

AxWMPLib.AxWindowsMediaPlayer wmp = new AxWMPLib.AxWindowsMediaPlayer();
((System.ComponentModel.ISupportInitialize)(wmp)).BeginInit();
wmp.Enabled = true;
wmp.Location = new System.Drawing.Point(0, 0);
wmp.Name = "wmp";
wmp.Size = new System.Drawing.Size(800, 600);
this.Controls.Add(wmp);
((System.ComponentModel.ISupportInitialize)(wmp)).EndInit();
wmp.uiMode = "none";
wmp.URL = link;
john00 23-Jun-13 8:51am View    
Deleted
using AxWMPLib; //windows Media Player
using WMPLib;//windows Media Player

Reference would be:
AxInterop.WMPLib.dll
Interop.WMPLib.dll

Here is the complete code:

AxWMPLib.AxWindowsMediaPlayer wmp = new AxWMPLib.AxWindowsMediaPlayer();
((System.ComponentModel.ISupportInitialize)(wmp)).BeginInit();
wmp.Enabled = true;
wmp.Location = new System.Drawing.Point(0, 0);
wmp.Name = "wmp";
wmp.Size = new System.Drawing.Size(800, 600);
this.Controls.Add(wmp);
((System.ComponentModel.ISupportInitialize)(wmp)).EndInit();
wmp.uiMode = "none";
wmp.URL = link;
john00 23-Jun-13 6:13am View    
Thanks for your reply.
I am using it like this:
AxWMPLib.AxWindowsMediaPlayer wmp = new AxWMPLib.AxWindowsMediaPlayer();
wmp.URL=link;

later in code:
wmp.Close();
wmp.Dispose();

When I try ReleaseObject I get an Exception that it is not an COMObject.