Skip to content

MediaPlayer Members

Etienne Charland edited this page Jun 2, 2022 · 1 revision

MediaPlayer is the main control that you place in your page. It will contain an implementation deriving from PlayerHostBase.

MediaPlayer Properties

ChangeVolumeOnMouseWheel

Gets or sets whether to change volume with the mouse wheel.

IsPlayPauseVisible

Gets or sets whether the Play/Pause button is visible.

IsStopVisible

Gets or sets whether the Stop button is visible.

IsLoopVisible

Gets or sets whether the Loop button is visible.

IsVolumeVisible

Gets or sets whether the volume is visible.

IsSpeedVisible

Gets or sets whether the Speed button is visible.

IsSeekBarVisible

Gets or sets whether the seek bar is visible.

MouseFullScreen

Gets or sets the mouse action that will trigger full-screen mode.

MousePause

Gets or sets the mouse action that will trigger pause.

PositionDisplay

Gets or sets how time is displayed within the player.

SeekMinInterval

Gets or sets the interval in milliseconds between consecutive seeks. Default = 500.

Sometimes useful

PlayerHost

Gets the PlayerHostBase contained within the MediaPlayer.

FullScreen

Gets or sets whether full-screen mode is active.

Used by stylesheet only

ChangeVolumeCommand

Adds specified value to the volume. Volume is an integer between 0 and 100. Calling this with a value of 5 will increase volume by 5.

IsPlaying

Exposes IsPlaying from PlayerHost so that it can be bound to styles.

PlayPauseCommand

Toggle between play and pause status.

PositionBar

Gets or sets the visual position of the seek bar.

PositionText

Gets the position text.

SeekCommand

Seeks to specified position.

Title

Gets or sets the title to display.

ToggleFullScreenCommand

Toggles between full-screen and normal mode.

Style Element Names

PART_UI

The name of the control containing the video. This control will be transferred into a new container in full-screen mode.

PART_SeekBar

The seek bar slider control.

PART_Track

The track within the seek bar.

PART_DecreaseButton

The seek bar decrease button.

PART_IncreaseButton

The seek bar increase button.