C# Class Business.WmpPlayerBusiness

Inheritance: Business.IMediaPlayerBusiness
ファイルを表示 Open project: mysteryx93/NaturalGroundingPlayer Class Usage Examples

Public Properties

Property Type Description
IsVisible bool
player IMediaPlayerControl

Private Properties

Property Type Description
TrackPosition void
player_Closed void
player_MediaOpened void
player_MediaPause void
player_MediaResume void
timerGetPosition_Tick void
timerPlayTimeout_Tick void

Public Methods

Method Description
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.

Private Methods

Method Description
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.

Method Details

Close() public method

public Close ( ) : void
return void

Hide() public method

public Hide ( ) : void
return void

PlayVideoAsync() public method

public PlayVideoAsync ( Media video, bool enableAutoPitch ) : Task
video Media
enableAutoPitch bool
return Task

SetPath() public method

public SetPath ( ) : void
return void

SetPositionAsync() public method

public SetPositionAsync ( double pos ) : Task
pos double
return Task

Show() public method

public Show ( ) : void
return void

WmpPlayerBusiness() public method

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

Property Details

IsVisible public_oe property

public bool IsVisible
return bool

player public_oe property

public IMediaPlayerControl player
return IMediaPlayerControl