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
Exibir arquivo Open project: bbougot/Popcorn

Public Methods

Method 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

Method Description
ComputePositionTicks ( decimal speedRatio ) : long

Method Details

MediaTimer() public method

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

Pause() public method

Pauses the timer
public Pause ( ) : void
return void

Play() public method

Starts or resumes the timer
public Play ( ) : void
return void

Seek() public method

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.
return void

Seek() public method

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.
return void

Seek() public method

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.
return void

Stop() public method

Stops the timer and makes the elapsed time effectively 0
public Stop ( ) : void
return void