3

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

Ostkontentitan
  • 6,930
  • 5
  • 53
  • 71

6 Answers6

7

Use like this:

axWindowsMediaPlayer1.uiMode = "None";
HebeleHododo
  • 3,620
  • 1
  • 29
  • 38
5

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

InteractiveActivationMode="None"
Ostkontentitan
  • 6,930
  • 5
  • 53
  • 71
3

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

HichemSeeSharp
  • 3,240
  • 2
  • 22
  • 44
2

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.

jv42
  • 8,521
  • 5
  • 40
  • 64
1

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

xleon
  • 6,201
  • 3
  • 36
  • 52
  • 1
    IsInteractive does not exist as a property, atleast not in my VS 2017 – Mark Apr 26 '18 at 12:27
  • I don't see this property at all. Nor the others mentioned above (IsTimeLineVisible, IsPlayPauseVisible, IsPositionVisible, IsStopVisible) – Phil Rogers Sep 12 '18 at 09:48
  • Guys, before you downvote something, make sure your statement is true. The property is there if you install Microsoft Player framework vsix extension from https://archive.codeplex.com/?p=playerframework. – xleon Sep 13 '18 at 08:25
-1

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

  • Sure would like if you provided a non-hackish way to tell the player to stay at the last frame when finished playing, instead of going back to the first frame. – Chris Bordeman Feb 18 '15 at 18:48