C# Класс 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
Наследование: INotifyPropertyChanged
Показать файл Открыть проект

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

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

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

Метод Описание
ComputePositionTicks ( decimal speedRatio ) : long

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

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

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

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

Pauses the timer
public Pause ( ) : void
Результат void

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

Starts or resumes the timer
public Play ( ) : void
Результат void

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

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.
Результат void

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

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.
Результат void

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

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.
Результат void

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

Stops the timer and makes the elapsed time effectively 0
public Stop ( ) : void
Результат void