Hide MediaPlayer Controls ( Microsoft Media Platform Player Framework )

怎甘沉沦 提交于 2019-12-08 03:38:06

问题


I´m using the MMP:PF in a c#/xaml application and provide my own control elements to handle the player.

Thats why i would like to hide/disable its own native controls that appear on the bottom. ( And in the middle of the screen on screenshot, this one´s just using a theme )

Does anybody know how to do that? I didnt manage to find a property for that.


回答1:


From MediaPlayer's reference, IsTimeLineVisible, IsPlayPauseVisible, IsPositionVisible, IsStopVisible and many other visibility properties available. so you can set them to false. take a look at the MediaPlayer Properties




回答2:


The magic property to keep players controls from showing up at all:

InteractiveActivationMode="None"



回答3:


Use like this:

axWindowsMediaPlayer1.uiMode = "None";



回答4:


Alternative solution to HichemC's answer: you can change the Player control template.

Using Blend, it's not very hard, and it gives you a lot of control. For instance, you can hook your controls on the Player's states (VSM) and be sure your controls are correctly synchronized with the player's internal state.




回答5:


If you want to hide/show all controls at once:

_player.IsInteractive = true/false;

Here´s an screenshot of the decompiled MediaPlayer.cs for those saying the property does not exists.




回答6:


I am responsible for the MMPPF at Microsoft and am happy to help wi any questions. I concur with the suggestions here. Though I love this site, we don't monitor it very heavily for MMPPF support questions. If you do need answers from us, the support page on the CodePlex project site is monitored by my team on a daily basis and they're pretty quick to respond. Don't let that deter you from using this forum - I'm just suggesting that our project site is a better way to get answers directly from the developers, if needed.

I hope your app did well.

Mike Downey miked --at--- microsoft.com



来源:https://stackoverflow.com/questions/14578867/hide-mediaplayer-controls-microsoft-media-platform-player-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!