stbBrowser

stbBrowser

Tutorials:

stbBrowser provides API to access stbBrowser instance.

Members

(static, readonly) surface :stbSurface

A surface linked with this browser.

Type:

(static, readonly) proxy :proxyConfig

See:

Get browser current web proxy configuration.

Given proxy settings are only applied to requests of the browser but not applied to content playback.
For this purpose please use associated options in stbPlayer.play.

Type:
  • proxyConfig
Example
'http://user1:pass1@16.16.16.16:3128'

(static, readonly) proxyExcludeList :string

See:

Get proxy exclude list delimited by spaces.

Access to any entry in this list is performed directly, without proxy.

Type:
  • string
Example
'youtube.com .lenta.ru 192.168.1.1/24 192.168.2.*'

Methods

(static) setProxy(proxy, excludeList) → {boolean}

See:

Set web proxy configuration.

Use stbBrowser.proxy and stbBrowser.proxyExcludeList
to get current proxy config options.

Example
if ( stbBrowser.setProxy('http://16.16.16.16:3128', '192.168.1.1/24 192.168.2.*') ) {
    // proxy is applied and activated
}
Parameters:
Name Type Description
proxy stbBrowser~proxyConfig

configuration options string

excludeList string

list of entries with direct access delimited by spaces

Returns:

operation status

Type
boolean

(static) resetProxy()

See:

Disable sending all requests through proxy and start sending them directly.

Type Definitions

proxyConfig

See:

Proxy configuration string.

Format: scheme:[//[user:password@]host[:port]]

Type:
  • string
Example
http://16.16.16.16:3128