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
파일 보기 프로젝트 열기: bbougot/Popcorn

공개 메소드들

메소드 설명
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