C# Class Popcorn.UserControls.Players.Trailer.TrailerPlayer

Interaction logic for MoviePlayer.xaml
Inheritance: IDisposable
Afficher le fichier Open project: bbougot/Popcorn

Méthodes publiques

Méthode Description
Dispose ( ) : void

Free resources

TrailerPlayer ( ) : System

Initializes a new instance of the TrailerPlayer class.

Private Methods

Méthode Description
ChangeMediaVolume ( double newValue ) : void

Change the trailer's volume

Dispose ( bool disposing ) : void

Dispose the control

MediaPlayerEndReached ( object sender, EventArgs e ) : void

When a trailer has been fully played, stop playing the trailer

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 trailer player

MediaPlayerPauseExecuted ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void

Pause trailer

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 trailer

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 trailer player progress

MediaSliderProgressValueChanged ( object sender, RoutedPropertyChangedEventArgs e ) : void

Report runtime when trailer 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 trailer when control has been loaded

OnStoppedPlayingMedia ( object sender, EventArgs e ) : void

When trailer has finished playing, stop player and dispose control

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

When trailer's volume changed, update volume

PauseMedia ( ) : void

Pause the trailer

PlayMedia ( ) : void

Play the trailer

Method Details

Dispose() public méthode

Free resources
public Dispose ( ) : void
Résultat void

TrailerPlayer() public méthode

Initializes a new instance of the TrailerPlayer class.
public TrailerPlayer ( ) : System
Résultat System