C# 클래스 Business.WmpPlayerBusiness

상속: Business.IMediaPlayerBusiness
파일 보기 프로젝트 열기: mysteryx93/NaturalGroundingPlayer 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
IsVisible bool
player IMediaPlayerControl

Private Properties

프로퍼티 타입 설명
TrackPosition void
player_Closed void
player_MediaOpened void
player_MediaPause void
player_MediaResume void
timerGetPosition_Tick void
timerPlayTimeout_Tick void

공개 메소드들

메소드 설명
Close ( ) : void
Hide ( ) : void
PlayVideoAsync ( Media video, bool enableAutoPitch ) : Task
SetPath ( ) : void
SetPositionAsync ( double pos ) : Task
Show ( ) : void
WmpPlayerBusiness ( IMediaPlayerControl player ) : System

Initializes a new instance of the MpcPlayer class.

비공개 메소드들

메소드 설명
TrackPosition ( ) : void
player_Closed ( object sender, EventArgs e ) : void
player_MediaOpened ( object sender, EventArgs e ) : void
player_MediaPause ( object sender, EventArgs e ) : void

Raise the Resume event.

player_MediaResume ( object sender, EventArgs e ) : void

Raise the Resume event.

timerGetPosition_Tick ( object sender, EventArgs e ) : void

Occurs every second. Detects end position, start position or restore position.

timerPlayTimeout_Tick ( object sender, EventArgs e ) : void

Occurs 5 seconds after the last video started to ensure the player returns into usable state if play failed.

메소드 상세

Close() 공개 메소드

public Close ( ) : void
리턴 void

Hide() 공개 메소드

public Hide ( ) : void
리턴 void

PlayVideoAsync() 공개 메소드

public PlayVideoAsync ( Media video, bool enableAutoPitch ) : Task
video Media
enableAutoPitch bool
리턴 Task

SetPath() 공개 메소드

public SetPath ( ) : void
리턴 void

SetPositionAsync() 공개 메소드

public SetPositionAsync ( double pos ) : Task
pos double
리턴 Task

Show() 공개 메소드

public Show ( ) : void
리턴 void

WmpPlayerBusiness() 공개 메소드

Initializes a new instance of the MpcPlayer class.
public WmpPlayerBusiness ( IMediaPlayerControl player ) : System
player IMediaPlayerControl
리턴 System

프로퍼티 상세

IsVisible 공개적으로 프로퍼티

public bool IsVisible
리턴 bool

player 공개적으로 프로퍼티

public IMediaPlayerControl player
리턴 IMediaPlayerControl