Свойство | Тип | Описание | |
---|---|---|---|
_ended | PlayerEventDlgt | ||
_playbackError | PlayerEventDlgt | ||
_playbackStateChanged | PlayerEventDlgt | ||
_processPath | string | ||
_started | PlayerEventDlgt | ||
_stateReady | PlayerEventDlgt | ||
_stopped | PlayerEventDlgt |
Метод | Описание | |
---|---|---|
Dispose ( ) : void |
Clean up
|
|
Init ( MediaItem mediaItem ) : bool | ||
InitializePlayerEvents ( PlayerEventDlgt started, PlayerEventDlgt stateReady, PlayerEventDlgt stopped, PlayerEventDlgt ended, PlayerEventDlgt playbackStateChanged, PlayerEventDlgt playbackError ) : void | ||
Play ( ) : bool |
Play the specified file - file will actually be the video id from the website This method will hide MediaPortal and run the BrowserHost - BorwserHost needs to support the WebAutomationType and have the code to actually navigate to the site
|
|
Prepare ( MediaItem mediaItem ) : void |
We require the command line parameters for the web browser host Util should be an implementation of IBrowserSiteUtil
|
|
ResetPlayerEvents ( ) : void | ||
Stop ( ) : void | ||
SuspendMP ( bool suspend ) : void |
Suspend mediaportal and hide the window
|
|
_callback_OnBrowserKeyPress ( int keyPressed ) : void |
When the browser has a key press, try and map it to an action and fire the on action
|
Метод | Описание | |
---|---|---|
Ended ( ) : void | ||
FireEnded ( ) : void | ||
FirePlaybackStateChanged ( ) : void | ||
FireStarted ( ) : void | ||
FireStateReady ( ) : void | ||
FireStopped ( ) : void |
Метод | Описание | |
---|---|---|
BrowserProcess_Exited ( object sender, |
Restore the MP window
|
|
GetRunningProcess ( string processName ) : void | ||
InstanceOnKeyPressed ( MediaPortal.UI.Control.InputManager.Key &key ) : void |
When a new action is received we'll forward them to the browser host using a WCF service
|
|
IsPassThrough ( MediaPortal.UI.Control.InputManager.Key key, string &action ) : bool |
Handles key presses that should be simply forwarded to client (especially number keys).
|
|
KillBrowserProcess ( ) : void |
Kill the browser process if it's set to an instance
|
|
ProcessActionArguments ( string &action ) : void | ||
Redirect ( |
Read the standard streams using a separate thread
|
|
ReinitialiseService ( ) : void |
Initialise the connection to the service
|
|
Shutdown ( ) : void | ||
ToggleMinimise ( bool shouldMinimise ) : void |
We'll use reflection to call in to some core MediaPortal methods to minimise to the system tray This seems to work better that other methods I've found because they cause MediaPortal to hog a core when set to suspending
|
|
_callback_OnBrowserHostClosing ( object sender, |
Handles the event from the browser host telling us its closing
|
protected FirePlaybackStateChanged ( ) : void | ||
Результат | void |
public Init ( MediaItem mediaItem ) : bool | ||
mediaItem | MediaItem | |
Результат | bool |
public InitializePlayerEvents ( PlayerEventDlgt started, PlayerEventDlgt stateReady, PlayerEventDlgt stopped, PlayerEventDlgt ended, PlayerEventDlgt playbackStateChanged, PlayerEventDlgt playbackError ) : void | ||
started | PlayerEventDlgt | |
stateReady | PlayerEventDlgt | |
stopped | PlayerEventDlgt | |
ended | PlayerEventDlgt | |
playbackStateChanged | PlayerEventDlgt | |
playbackError | PlayerEventDlgt | |
Результат | void |
public Prepare ( MediaItem mediaItem ) : void | ||
mediaItem | MediaItem | |
Результат | void |
public _callback_OnBrowserKeyPress ( int keyPressed ) : void | ||
keyPressed | int | Key pressed in browser |
Результат | void |
protected PlayerEventDlgt _playbackError | ||
Результат | PlayerEventDlgt |
protected PlayerEventDlgt _playbackStateChanged | ||
Результат | PlayerEventDlgt |