Show:

SecondScreenHost global entry object, accessible on the browser through window.secondscreenHost.noConflict().

Copyright (c) 2013 Infrared5

https://github.com/infrared5/red5pro-host-html-sdk

Methods

allDevices

() Function

Returns proxy to Device API on all devices.

see device.Device

Returns:

Function:

Proxy on full Device API

getDeviceById

(
  • id
)
device.Device

Returns associated Device with id if connected. Returns undefined if Device not found.

see device.Device

Parameters:

  • id String

    Associated unique identifier for connected Device

Returns:

getVisibility

() Boolean

Returns visibility of this Host instance on the registry.

Returns:

Boolean:

setLogLevel

(
  • level
)

Define the log level for printing messages from the Host to the console.

Parameters:

  • level Int

    Enumeration value from

setVisibility

(
  • value
)

Sets visibility/accessibility of this Host instance on the registry. If set to false, the Host is not considered registered and available to connect to from a Client device.

Parameters:

  • value Boolean

    Flag of visibility.

start

(
  • config
  • forceFlash
)

Starts a SecondScreen Host session. Attempts to register host on target registryUrl defined in configuration.

Parameters:

  • config Object

    Configuration for host.

  • forceFlash Boolean

    Flag to force flash fallback usage. Otherwise, determined on browser capabilities.

Example:

var host = window.secondscreenHost.noConflict();
host.start({
  name: "SDK Examples",
  registryUrl: "ws://54.82.36.3:6262/secondscreen",
  appId: "secondscreen",
  controlMode: host.ControlModes.HTML,
  controlsUrl: "scheme/basic-scheme.html"
});

stop

()

Stops a SecondScreen Host session. Unregisters host from remote/local registry and shuts down all connections.

Example:

var host = window.secondscreenHost.noConflict();
host.start({
  name: "SDK Examples",
  registryUrl: "ws://54.82.36.3:6262/live",
  appId: "secondscreen",
  controlMode: host.ControlModes.HTML,
  controlsUrl: "scheme/basic-scheme.html"
});
...
host.stop();

versionStr

() String

Returns the current version in prety print String

Returns:

String:

Properties

ControlModes

Dictionary

Enumeration of enum.ControlMode

DPadControls

Dictionary

Enumeration of enum.DPADControls event position data

ErrorTypes

Dictionary

Enumeration of enum.ErrorType

EventTypes

Dictionary

Enumeration of bridge.EventBridge event notification types.

LogLevels

Dictionary

Enumeration of LogLevels

SlotColors

Array

List of designated Slot Colors in registry.