Method | Description | |
---|---|---|
Dispose ( ) : void |
Free resources
|
|
TrailerPlayer ( ) : System |
Initializes a new instance of the TrailerPlayer class.
|
Method | Description | |
---|---|---|
ChangeMediaVolume ( double newValue ) : void |
Change the trailer's volume
|
|
Dispose ( bool disposing ) : void |
Dispose the control
|
|
MediaPlayerEndReached ( object sender, |
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, |
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 |
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, |
Hide the PlayerStatusBar on mouse inactivity
|
|
OnLoaded ( object sender, |
Subscribe to events and play the trailer when control has been loaded
|
|
OnStoppedPlayingMedia ( object sender, |
When trailer has finished playing, stop player and dispose control
|
|
OnVolumeChanged ( |
When trailer's volume changed, update volume
|
|
PauseMedia ( ) : void |
Pause the trailer
|
|
PlayMedia ( ) : void |
Play the trailer
|