C# Class Popcorn.UserControls.Players.Movie.MoviePlayer

Interaction logic for MoviePlayer.xaml
Inheritance: IDisposable
Datei anzeigen Open project: bbougot/Popcorn

Public Methods

Method Description
Dispose ( ) : void

Free resources

MoviePlayer ( ) : System

Initializes a new instance of the MoviePlayer class.

Private Methods

Method Description
ChangeMediaVolume ( double newValue ) : void

Change the media's volume

Dispose ( bool disposing ) : void

Dispose the control

MediaPlayerEndReached ( object sender, EventArgs e ) : void

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, EventArgs e ) : void

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 e ) : void

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, EventArgs e ) : void

Hide the PlayerStatusBar on mouse inactivity

OnLoaded ( object sender, EventArgs e ) : void

Subscribe to events and play the movie when control has been loaded

OnStoppedPlayingMedia ( object sender, EventArgs e ) : void

When media has finished playing, dispose the control

OnVolumeChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs e ) : void

When media's volume changed, update volume

PauseMedia ( ) : void

Pause the movie

PlayMedia ( ) : void

Play the movie

Method Details

Dispose() public method

Free resources
public Dispose ( ) : void
return void

MoviePlayer() public method

Initializes a new instance of the MoviePlayer class.
public MoviePlayer ( ) : System
return System