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:
- Philips with JointSpace APIs
- LG with WebOS
- LG with NetCast
var tv = new JSTVRemote.Philips(ip, port, callback);
var tv = new JSTVRemote.LGNetCast(ip, port, callback);
var tv = new JSTVRemote.LGWebOS(ip, port, callback);
var features = tv.getFeatures();
returns features that API supports
var keys = tv.getKeys();
returns keys that API supports sending as TV remote control
tv.sendKey(key, callback); tv.inputText(text, callback); tv.mouseMove(dx, dy, drag, callback); tv.click(callback); tv.scroll(dx, dy, callback);