Hide MediaPlayer Controls ( Microsoft Media Platform Player Framework )

11,783

Solution 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

Solution 2

Use like this:

axWindowsMediaPlayer1.uiMode = "None";

Solution 3

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

InteractiveActivationMode="None"

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

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

enter image description here

Share:
11,783
Ostkontentitan
Author by

Ostkontentitan

Updated on June 05, 2022

Comments

  • Ostkontentitan
    Ostkontentitan over 1 year

    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
    Ostkontentitan almost 11 years
    Thank you very, i should look more closely next time!
  • Chris Bordeman
    Chris Bordeman over 8 years
    Excellent. And this one doesn't cause the player to hide other controls.
  • Chris Bordeman
    Chris Bordeman over 8 years
    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.
  • Mark
    Mark over 5 years
    IsInteractive does not exist as a property, atleast not in my VS 2017
  • Phil Rogers
    Phil Rogers about 5 years
    I don't see this property at all. Nor the others mentioned above (IsTimeLineVisible, IsPlayPauseVisible, IsPositionVisible, IsStopVisible)
  • xleon
    xleon about 5 years
    Guys, before you downvote something, make sure your statement is true. The property is there if you install Microsoft Player framework vsix extension from archive.codeplex.com/?p=playerframework.