Question

I need to use an AxWindowsMediaPlayer control in a c# application to play audio. So I need to hide the video display, and keep only the controls (buttons and seek and volume bars)

Any idea how this can be accomplished?

All I could find is the uiMode property, but it didn't help.

Was it helpful?

Solution

I know you want to hide the video with the uiMOde

awWindowsMediaPlayer.uiMode= "invisible";

But, this hide controls too...

For me, you have two solutions:

the first, you create your axWindowsPlayer form with 45pixel of height for display just the controls button.

the seconds, you hide all the form, and create all your button...

you've acces at the controls button with : (play button for sample)

axWindowsMediaPlayer.Ctlcontrols.play();

And you've acces to the settings with : (volume for sample)

axWindowsMediaPlayer.settings.volume = 25;

I also saw that it was possible to define a custom uiMode, but I did not find any information about that...

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top