Property | Type | Description | |
---|---|---|---|
GetForegroundWindow | |||
Player_MPC_CurrentPosition | void | ||
Player_MPC_NowPlaying | void | ||
Player_MPC_Running | void | ||
SetForegroundWindow | bool | ||
player_MPC_Play | void | ||
player_MPC_Stop | void | ||
timerDisablePosTimeout_Tick | void | ||
timerGetPosition_Tick | void | ||
timerPlayTimeout_Tick | void |
Method | Description | |
---|---|---|
Close ( ) : void | ||
Hide ( ) : void | ||
MpcPlayerBusiness ( ) : System |
Initializes a new instance of the MpcPlayer class.
|
|
PlayVideoAsync ( |
||
PlayVideoAsync ( string fileName ) : Task |
Plays specified video file. To use only when playing files outside the Natural Grounding folder.
|
|
SetPath ( ) : void | ||
SetPositionAsync ( double value ) : Task | ||
Show ( ) : void |
Method | Description | |
---|---|---|
GetForegroundWindow ( ) : |
||
Player_MPC_CurrentPosition ( MPC msg ) : void |
Raise PositionChanged event.
|
|
Player_MPC_NowPlaying ( MPC msg ) : void |
When playing new file, update CurrentVideo.Length and raise NowPlaying event.
|
|
Player_MPC_Running ( ) : void |
When player is restored after closing, open previous file and restore position.
|
|
SetForegroundWindow ( |
||
player_MPC_Play ( MPC msg ) : void |
Raise the Resume event.
|
|
player_MPC_Stop ( MPC msg ) : void |
Raise the Pause event.
|
|
timerDisablePosTimeout_Tick ( object sender, |
Ensures the position tracking timer isn't disabled for more than 5 seconds.
|
|
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 ( |
||
video | ||
enableAutoPitch | bool | |
return | Task |
public PlayVideoAsync ( string fileName ) : Task | ||
fileName | string | The path of the file to play. |
return | Task |
public SetPositionAsync ( double value ) : Task | ||
value | double | |
return | Task |