NoesisGUI

MediaPlayer Class

namespace NoesisApp

Abstract class for the implementation of audio/video in a MediaElement.

Each platform must provide an implementation for this class and pass it to MediaElement by calling MediaElement::SetCreateMediaPlayerCallback.

Inheritance Hierarchy

MediaPlayer

INDEX Class Hierarchy Index

Properties


Name Description
None Balance Gets or sets the balance between the left and right speaker volumes, represented in a range between -1 and 1. The default is 0
RO BufferingProgress Gets the percentage of buffering completed for streaming content, represented in a value between 0 and 1
RO CanPause Gets a value indicating whether the media can be paused
RO DownloadProgress Gets the percentage of download progress for content located at a remote server, represented by a value between 0 and 1. The default is 1
RO Duration Gets the duration in seconds of the media
RO Height Gets the pixel height of the video
None IsMuted Gets or sets a value that indicates whether the media is muted. The default is false
None Position Gets or sets the current position in seconds of the media
None ScrubbingEnabled Gets or sets a value that indicates whether the media player will update frames for seek operations while paused. The default is false
None SpeedRatio Gets or sets the ratio of speed that media is played at, represented by a value between 0 and the largest float. The default is 1
None Volume Gets or sets the media's volume, represented on a linear scale between 0 and 1. The default is 0.5
RO Width Gets the pixel width of the video

DP_ Dependency Property      RO_ Read-only


Methods

Name Description
GetTextureSource Gets the texture source for rendering the video
HasAudio Gets a value that indicating whether the media has audio output
HasVideo Gets a value that indicates whether the media has video output
Pause Pauses media playback
Play Starts or resumes media playback
Stop Stops media playback and moves position to the begining

Events


Name Description
D BufferingEnded Occurs when buffering has finished
D BufferingStarted Occurs when buffering has started
D MediaEnded Occurs when the media has finished playback
D MediaFailed Occurs when an error is encountered
D MediaOpened Occurs when the media is opened

R Routed Event      N Non-routed Event      D Delegate Event


© 2017 Noesis Technologies