C# Class Unosquare.FFmpegMediaElement.MediaTimer

A high precision timer designed to keep track of media playback. Control methods mimic media playback control methods such as Play Pause, Stop and Seek
Inheritance: INotifyPropertyChanged
Afficher le fichier Open project: bbougot/Popcorn

Méthodes publiques

Méthode Description
MediaTimer ( ) : System

Initializes a new instance of the MediaTimer class.

Pause ( ) : void

Pauses the timer

Play ( ) : void

Starts or resumes the timer

Seek ( System.TimeSpan ts ) : void

Sets the Position to the specified value. If the timer is running, it will be paused after this method call.

Seek ( decimal seconds ) : void

Sets the Position to the specified value. If the timer is running, it will be paused after this method call.

Seek ( long ticks ) : void

Sets the Position to the specified value. If the timer is running, it will be paused after this method call.

Stop ( ) : void

Stops the timer and makes the elapsed time effectively 0

Private Methods

Méthode Description
ComputePositionTicks ( decimal speedRatio ) : long

Method Details

MediaTimer() public méthode

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

Pause() public méthode

Pauses the timer
public Pause ( ) : void
Résultat void

Play() public méthode

Starts or resumes the timer
public Play ( ) : void
Résultat void

Seek() public méthode

Sets the Position to the specified value. If the timer is running, it will be paused after this method call.
public Seek ( System.TimeSpan ts ) : void
ts System.TimeSpan The ts.
Résultat void

Seek() public méthode

Sets the Position to the specified value. If the timer is running, it will be paused after this method call.
public Seek ( decimal seconds ) : void
seconds decimal The seconds.
Résultat void

Seek() public méthode

Sets the Position to the specified value. If the timer is running, it will be paused after this method call.
public Seek ( long ticks ) : void
ticks long The ticks.
Résultat void

Stop() public méthode

Stops the timer and makes the elapsed time effectively 0
public Stop ( ) : void
Résultat void