C# Класс Popcorn.UserControls.Players.Trailer.TrailerPlayer

Interaction logic for MoviePlayer.xaml
Наследование: IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
Dispose ( ) : void

Free resources

TrailerPlayer ( ) : System

Initializes a new instance of the TrailerPlayer class.

Приватные методы

Метод Описание
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

Описание методов

Dispose() публичный Метод

Free resources
public Dispose ( ) : void
Результат void

TrailerPlayer() публичный Метод

Initializes a new instance of the TrailerPlayer class.
public TrailerPlayer ( ) : System
Результат System