AxWMPLib.AxWindowsMediaPlayer is the base class for the Windows Media Player control
Questions tagged [axwindowsmediaplayer]
166 questions
9
votes
1 answer
Windows Media Player video is black if control is created programmatically
I'm trying to programmatically create the Windows Media Player control so I can trap any initialization errors. Before when I simply dropped the control on my form, everything played fine. But now that I'm trying to play things programmatically, the…

simon.d
- 2,471
- 3
- 33
- 51
7
votes
1 answer
Catastrophic failure (Exception from HRESULT: 0x8000FFFF) creating a playlist with axwindowsMediaPlayer
I am using the axwindowsMediaPlayer object to show videos in a winform. In particular I want to play a playlist.
Everything works fine on my pc (win7) and used to work fine also in another pc with winXP (the pc of the final user).
But something…

muccix
- 321
- 1
- 3
- 10
7
votes
2 answers
How to add multiple files to a playlist
I have one OpenFileDialog control that has Multiselect = true. Now I want to add each file to windows media player playlist but I have no idea how to do that and there is no good example on the internet.
if (ofdSong.ShowDialog() ==…

a1204773
- 6,923
- 20
- 64
- 94
6
votes
2 answers
How do I create transparent labels over a Video control
I'm pretty much out of ideas here... for everything else, setting the background color to Color.Transparent or setting the TransparencyKey works fine...
I have an mp4 Video which I need to play as a "background" of my form. To do this, I'm currently…

Michael
- 695
- 2
- 12
- 36
5
votes
2 answers
How to get current frame?
I would like to send to another app current frame (number). Is it possible to access it in axWindowsMediaPlayer control?

IAdapter
- 62,595
- 73
- 179
- 242
5
votes
2 answers
Play next file automatically using MediaPlayer Control(AxWindowsMediaPlayer)
When changing AxWindowsMediaPlayer URL in PlayStateChange Event, it doesn't start playing automatically, just changes to "Ready" state.
I have an "AxWindowsMediaPlayer" Control in my C# WinForms program. when I normally change the URL property of…

Mohamad Hedayati
- 88
- 1
- 7
5
votes
1 answer
ErrorThe type or namespace name 'AxWMPLib' could not be found (are you missing a using directive or an assembly reference?)
What is the possible reference for the handler AxWMPLib._WMPOCXEvents_PlayStateChangeEventHandler ?
When I pass this event in the method,
private void axWindowsMediaPlayer1_PlayStateChange(object sender,AxWMPLib._WMPOCXEvents_PlayStateChangeEvent…

Barani
- 83
- 1
- 8
4
votes
1 answer
Windows Media Player control - get/set video position?
I am using Windows Media Player ActiveX (axWindowsMediaPlayer) component in C# WinForms application. Is it possible to get and set the current position of the video that is being played using this control?

m0s
- 4,250
- 9
- 41
- 64
4
votes
1 answer
Windows Media Player Embedded in C# Video Speed Change
I currently have a windows media player embedded into my winform on c# and i am now trying to make a button to control the speed of the video play. I currently can use controls to play, pasue and stop, found in ctlcontrols but can't find a way to…

Chris Bacon
- 995
- 8
- 30
- 42
4
votes
2 answers
Stretch video of AxWindowsMediaPlayer without maintaining aspect ration in C#
Using the AxWindowsMediaPlayer I need to stretch a video to take up the entire screen. The issue with stretchToFit = true, is that stretchToFit maintains the aspect ratio of the video, creating blackbars if the video or monitor is not of the same…

noahnu
- 3,479
- 2
- 18
- 40
4
votes
3 answers
AxWindowsMediaPlayer : pause on last frame
I am using the AxWindowsMediaPlayer control in a Winforms C# application and I would like to set the player to pause on the last frame when the video is finished playing. I already handle the fact that the video is finished to display another…

Kevin Coulombe
- 1,517
- 1
- 17
- 35
3
votes
2 answers
How to play next item on playlist with axmediaplayer?
ok i have question, i made this code to play axmediaplayer base on item listed on listbox.
first i make this code to make a list using opendialog :
private string[] files, path;
private void button1_Click(object sender, EventArgs e)
{
…

Cero
- 61
- 1
- 6
3
votes
2 answers
Windows Media Player in .NET 5.0
I have a .NET 5.0 WinForms app in which I am trying to add the Windows Media Player. I am trying to add it to the Toolbox by doing Choose Toolbox Items -> COM Compononents which tells me the following controls were added but are not enabled.
I…

Veljanovski
- 43
- 1
- 2
- 8
3
votes
1 answer
Overlay Picturebox (or image) on top of AxWindowsMediaPlayer
I'm trying to overlay a picture box on top of a AxWindowsMediaPlayer control, but as soon as the video starts playing, the video is pushed to the front. Or failing that, I can get the picture box to sit on top, but it never has a transparent…

PersuitOfPerfection
- 1,009
- 1
- 15
- 28
3
votes
1 answer
Windows Media Player - Hide player after it is done playing
I am creating a game, I want to display a short tutorial video to the player after they have registered. I am using a windows media player control. I don't know how to hide the video after it has finished playing ?
I tried using the…

melika
- 97
- 2
- 9