Skip to content

PlayerHostBase Members

Etienne Charland edited this page Jun 2, 2022 · 4 revisions

All media player implementations derive from PlayerHostBase. More properties are defined for each implementation.

PlayerHostBase Properties

AutoPlay

Gets or sets whether to auto-play the file when setting the source.

IsPlaying

Gets or sets whether the media file is playing or paused.

IsVideoVisible

Gets or sets whether to show the video.

Loop

Gets or sets whether to loop.

Position

Gets or sets the playback position.

Source

Gets or sets the path to the media file to play. If resetting the same file path, you may need to first set an empty string before resetting the value to ensure it detects the value change.

SpeedFloat

Gets or sets the speed multiplier.

SpeedInt

Gets or sets the speed as an integer, where normal playback is 0. Useful for binding to a slider.

Title

Gets or sets the display title of the media file. A title is set by default and you can override it using this property.

Volume

Gets or sets the volume.

Read-Only Properties

Duration

Gets the duration of the media file.

IsMediaLoaded

Gets whether a media file is loaded.

Status

Gets the playback status of the media player.

Text

Gets the text being displayed. By default it is the media title.

Methods

Stop

Stops playback and unloads media file.

Restart

Restarts playback.

Events

MediaLoaded

Occurs after a media file is loaded.

MediaUnloaded

Occurs after a media file is unloaded.