JSTVRemote

Control your Smart TV from your browser

This library allows you to develop web apps to control your Smart TVs. Support of features depends on your TV, but it can send remote control keys to your TV, input text or control mouse cursor. Current TVs supported are:

Official page

WebCodingEas.com - Control Smart TV from browser

Usage

Initialization

var tv = JSTVRemote.init(tv, ip, port, callback); providing tv as values like "philips", "lg_netcast", "lg_webos" or directly initializing var tv = new JSTVRemote.Philips(ip, port, callback); var tv = new JSTVRemote.LGNetCast(ip, port, callback); var tv = new JSTVRemote.LGWebOS(ip, port, callback);

Feature query

Each tv instance can have different features. var features = tv.getFeatures(); returns features that API supports var keys = tv.getKeys(); returns keys that API supports sending as TV remote control

Sending key as remote control

tv.sendKey(key, callback);

Input text

tv.inputText(text, callback);

Mouse move

tv.mouseMove(dx, dy, drag, callback);

Mouse click

tv.click(callback);

Scroll

tv.scroll(dx, dy, callback);