Property | Type | Description | |
---|---|---|---|
IsVisible | bool | ||
player | IMediaPlayerControl |
Property | Type | Description | |
---|---|---|---|
TrackPosition | void | ||
player_Closed | void | ||
player_MediaOpened | void | ||
player_MediaPause | void | ||
player_MediaResume | void | ||
timerGetPosition_Tick | void | ||
timerPlayTimeout_Tick | void |
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.
|
Method | 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 | |
return | Task |
public SetPositionAsync ( double pos ) : Task | ||
pos | double | |
return | Task |
public WmpPlayerBusiness ( IMediaPlayerControl player ) : System | ||
player | IMediaPlayerControl | |
return | System |