ttv.player Object

Function or Property

Description

Returns

ttv.player

The player object

The player object

ttv.player.restart()

Restarts the player

null

Player Object Properties

Property

Description

Type

apiStatus

The status of the TelemetryTV API Websocket Connection

string

isPreviewing

Whether the Player is in preview mode or not. Typically when you're viewing within the administration app.

bool

stage

What the stage of the environment is (test, production, staging, etc).

string

isElectron

Whether the environment is running within the TelemetryTV Electron App (Mac, Windows or Linux) on Desktop or the Player

bool

isAndroid

Whether the environment is running within the TelemetryTV Android app.

bool

isWindows

Whether the environment is running within the TelemetryTV Windows app.

bool

isMacOS

Whether the environment is running within the TelemetryTV MacOS app.

bool

isIos

Whether the environment is running within the TelemetryTV Android app.

bool

isChromeOS

whether Whether the environment is running within the TelemetryTV ChromeOS app.

bool

isBrowser

Whether the environment is running within a browser (no containing app).

bool

isDesktop

Whether the environment is running within the TelemetryTV desktop app.

bool

window.onloadTelemetryTV = function (ttv) {
  console.log('Restarting the Player');
  ttv.player.restart();
};