Hide MediaPlayer Controls ( Microsoft Media Platform Player Framework )

14.3k Views Asked by At

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.

enter image description here

6

There are 6 best solutions below

1
On BEST ANSWER

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

0
On

Use like this:

axWindowsMediaPlayer1.uiMode = "None";
0
On

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.

1
On

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

1
On

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

InteractiveActivationMode="None"
3
On

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.

enter image description here