C# Class Business.WmpPlayerBusiness

Inheritance: Business.IMediaPlayerBusiness
Afficher le fichier Open project: mysteryx93/NaturalGroundingPlayer Class Usage Examples

Méthodes publiques

Свойство Type Description
IsVisible bool
player IMediaPlayerControl

Private Properties

Свойство Type Description
TrackPosition void
player_Closed void
player_MediaOpened void
player_MediaPause void
player_MediaResume void
timerGetPosition_Tick void
timerPlayTimeout_Tick void

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Close ( ) : void
Résultat void

Hide() public méthode

public Hide ( ) : void
Résultat void

PlayVideoAsync() public méthode

public PlayVideoAsync ( Media video, bool enableAutoPitch ) : Task
video Media
enableAutoPitch bool
Résultat Task

SetPath() public méthode

public SetPath ( ) : void
Résultat void

SetPositionAsync() public méthode

public SetPositionAsync ( double pos ) : Task
pos double
Résultat Task

Show() public méthode

public Show ( ) : void
Résultat void

WmpPlayerBusiness() public méthode

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

Property Details

IsVisible public_oe property

public bool IsVisible
Résultat bool

player public_oe property

public IMediaPlayerControl player
Résultat IMediaPlayerControl