Web Browser

From RealMotion Wiki

Content/Web Browser

Implements a web browser. ​

Description

The Web Browser Box is based on Chromium open-source browser.

It allows the offscreen rendering of Web Content and make it available within the pipeline as a Texture.

To find the original version used by the Web Browser box, go to http://chromium.woolyss.com/ with the RealMotion web browser.

General Usecase; The Web Browser is an alternative way to generate content.

Inputs

Go To Url Trigger Goes to the inputted Url on reception of this Event.
Keys Keyboard Event Vector Receives the Keys data to control the Web Browser.
Pointers Pointer Event Vector Receives the Pointers data to control the Web Browser.
Refresh Trigger Refreshes the web browser on reception of this Event.
Stop Trigger Stops the web browser on reception of this Event.
Url String Receives the URL of the page to load. The URL is loaded when the url change or when the Go To Url pin is triggered.

Outputs

Info WebBrowser Info Outputs the current internal state of the Web Browser to send to the Get Item box.
Texture 2D Render Target Outputs the texture generated by the loaded page.

Parameters

General

Framerate Float Sets the targeted framerate of the web browser.
Enable Transparency Toggle Enables the transfer of the transparency generated by the web browser into the outputted texture.
Enable Input Pin: Url Toggle Enables the Url Input Pin and overrides the Url parameter.
Url String Sets the url of the page to load.

External

Enable Input Pin: Pointers Toggle Enables the Pointers Input Pin.
Enable Input Pin: Keys Toggle Enables the Keys Input Pin.
Enable Input Pin: Go To Url Toggle Enables the Go To Url Input Pin.
Enable Input Pin: Refresh Toggle Enables the Refresh Input Pin.
Enable Input Pin: Stop Toggle Enables the Stop Input Pin.
Enable Output Pin: Info Toggle Enables the Info Output Pin.

Advanced

Enable Reboot Timeout Toggle Allows RealMotion to reboot the browser, if for any reasons the browser fails to respond to RealMotion within the timeout period.
Process Reboot Timeout Int Sets the allowed timeout period before the reboot of the Web Browser.
Process Release Timeout Int Sets the allowed timeout period before the release of the Web Browser.
Ignore Cache on Refresh Toggle When enabled, page refreshes triggered by the Refresh Input Pin will not use the client-side cache.
Enable Extensions Toggle Enables the installed Chrome/Chromium extensions.
Enable Gpu Toggle Allows GPU rendering and compositing operations to the WebBrowser. Also enables WebGL.
Print Javascript Console Toggle When enabled, console.log() messages from Javascript will also be printed into the RM console.
Enable Remote Debugging Toggle Enables the spawn of a local http server on the given port. This allows access to the developer’s tool through another web browser. For example, if 8080 port is chosen, look at URL: "<RM I.P>:8080".
Remote Debug Port Int Sets the local port for external access to the Web Browser.
Command Line String When enabled, Command line arguments are sent to the remote process.

Format

|}

Canvas Settings

Resolution Mode String Sets the Resolution Mode. Canvas uses the project configuration settings, Custom uses local setting resolution not shared with other box and Project Aspect Ratio uses the project aspect ratio and proportionally scales the height and width. The parameter chooses the reference Canvas setting the resolution of the outputted texture.
Canvas 2D ResolutionRef Chooses the reference Canvas and sets the resolution of the outputted texture.
Maximum Resolution Int Sets the maximal resolution of the X-axis and calculates the resolution of the Y-axis based on the aspect ratio of the Content Canvas.
Lock Aspect Ratio Toggle Locks the Aspect Ratio for Custom resolution.
Aspect Ratio 2D ResolutionRef Chooses the reference Canvas for the aspect ratio.
Size XY Int2 Sets the size in pixels of the outputted texture.

See Also

Boxes related

Texture, Keyboard Device, Pointer Device, Trigger Event, Get Item, String, Video Player, ​​

Version Information

Current documentation version: 2.1.2. ​ ​