문제

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.

도움이 되었습니까?

해결책

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...

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top