Свойство | Type | Description | |
---|---|---|---|
IsVisible | bool | ||
player | IMediaPlayerControl |
Свойство | Type | Description | |
---|---|---|---|
TrackPosition | void | ||
player_Closed | void | ||
player_MediaOpened | void | ||
player_MediaPause | void | ||
player_MediaResume | void | ||
timerGetPosition_Tick | void | ||
timerPlayTimeout_Tick | void |
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.
|
Méthode | Description | |
---|---|---|
TrackPosition ( ) : void | ||
player_Closed ( object sender, |
||
player_MediaOpened ( object sender, |
||
player_MediaPause ( object sender, |
Raise the Resume event.
|
|
player_MediaResume ( object sender, |
Raise the Resume event.
|
|
timerGetPosition_Tick ( object sender, |
Occurs every second. Detects end position, start position or restore position.
|
|
timerPlayTimeout_Tick ( object sender, |
Occurs 5 seconds after the last video started to ensure the player returns into usable state if play failed.
|
public PlayVideoAsync ( Media video, bool enableAutoPitch ) : Task | ||
video | Media | |
enableAutoPitch | bool | |
Résultat | Task |
public SetPositionAsync ( double pos ) : Task | ||
pos | double | |
Résultat | Task |
public WmpPlayerBusiness ( IMediaPlayerControl player ) : System | ||
player | IMediaPlayerControl | |
Résultat | System |