Operates a browser behavior in HTML5 overlay plugin
Methods
BrowserClose
Closes an internal browser object
Syntax
void BrowserClose()
BrowserCommand
Sends a command to a browser (reload, go back etc)
Syntax
void BrowserCommand( eMFBrowserCommand _eCommand, string _bsParams )
Parameters
_eCommand - a command to be sent
_bsParams - additional parameters
BrowserCSSSet
Sets CSS to a browser
Syntax
void BrowserCSSSet( string _bsCSSAsString )
Parameters
_bsCSSAsString - path to external CSS file or CSS configuration itself (as string)
BrowserHtmlDisplay
Directly display HTML content
Syntax
void BrowserHtmlDisplay( string _bsHTMLAsString )
Parameters
_bsHTMLAsString - HTML configuration itself as a string
BrowserJavascriptExecute
Executes a JavaScript code
Syntax
void BrowserJavascriptExecute( string _bsJScriptAsString )
Parameters
_bsJScriptAsString - path to JS file or a JavaScript code as string
BrowserKeyEvent
Forward a key event to a browser
Syntax
void BrowserKeyEvent( ref MF_KEY_EVENT _pKeyEvent )
Parameters
_pKeyEvent - key event
BrowserMouseClick
Forward mouse click event (the coordinates is relative to video size)
Syntax
void BrowserMouseClick( ref MF_MOUSE_EVENT _pMouseProps, eMFMouseButtons _eMouseButtons, int _bMouseUp, int _nClickCount )
Parameters
_pMouseProps - mouse properties
_eMouseButtons - mouse button
_bMouseUp - indicates whether the button is up (1) or down (0)
_nClickCount - amount of clicks
BrowserMouseMove
Forward mouse move event (the coordinates is relative to video size)
Syntax
void BrowserMouseMove( ref MF_MOUSE_EVENT _pMouseProps, int _bMouseLeave )
Parameters
_pMouseProps - mouse parameters
_bMouseLeave - indicates whether the mouse pointer leaves a browser (1) or stays within (0)
BrowserMouseWheel
Forward mouse wheel event (the coordinates is relative to video size)
Syntax
void BrowserMouseWheel( ref MF_MOUSE_EVENT _pMouseProps, int _nDeltaX, int _nDeltaY )
Parameters
_pMouseProps - mouse parameters
_nDeltaX - horizontal delta of scrolling
_nDeltaY - vertical delta of scrolling
BrowserPageLoad
Loads a specified page into a browser
Syntax
void BrowserPageLoad( string _bsFilenameOrUrl )
Parameters
_bsFilenameOrUrl - Path to HTML file or URL