Метод | Описание | |
---|---|---|
Dispose ( ) : void |
Free resources
|
|
MoviePlayer ( ) : System |
Initializes a new instance of the MoviePlayer class.
|
Метод | Описание | |
---|---|---|
ChangeMediaVolume ( double newValue ) : void |
Change the media's volume
|
|
Dispose ( bool disposing ) : void |
Dispose the control
|
|
MediaPlayerEndReached ( object sender, |
When a movie has been seen, save this information in the user data
|
|
MediaPlayerPauseCanExecute ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void |
Each time the CanExecute play command change, update the visibility of Play/Pause buttons in the media player
|
|
MediaPlayerPauseExecuted ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void |
Pause media
|
|
MediaPlayerPlayCanExecute ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void |
Each time the CanExecute play command change, update the visibility of Play/Pause buttons in the player
|
|
MediaPlayerPlayExecuted ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void |
Play media
|
|
MediaPlayerTimerTick ( object sender, |
Report the playing progress on the timeline
|
|
MediaSliderProgressDragCompleted ( object sender, System.Windows.Controls.Primitives.DragCompletedEventArgs e ) : void |
Report when user has finished dragging the media player progress
|
|
MediaSliderProgressValueChanged ( object sender, RoutedPropertyChangedEventArgs |
Report runtime when movie player progress changed
|
|
MouseWheelMediaPlayer ( object sender, System.Windows.Input.MouseWheelEventArgs e ) : void |
When user uses the mousewheel, update the volume
|
|
OnActivity ( object sender, System.Windows.Input.PreProcessInputEventArgs e ) : void |
Show the PlayerStatusBar on mouse activity
|
|
OnInactivity ( object sender, |
Hide the PlayerStatusBar on mouse inactivity
|
|
OnLoaded ( object sender, |
Subscribe to events and play the movie when control has been loaded
|
|
OnStoppedPlayingMedia ( object sender, |
When media has finished playing, dispose the control
|
|
OnVolumeChanged ( |
When media's volume changed, update volume
|
|
PauseMedia ( ) : void |
Pause the movie
|
|
PlayMedia ( ) : void |
Play the movie
|