AxWindowsMediaPlayer size in WPF applications

后端 未结 3 1747
耶瑟儿~
耶瑟儿~ 2021-01-23 10:12

I am using an AxWindowsMediaPlayer in a WindowsFormsHost in a WPF application.

I\'m having problems with sizing the control.

  1. I

3条回答
  •  悲&欢浪女
    2021-01-23 10:42

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

提交回复
热议问题