- Source:
Example
Use the application manager to make the application visible and request keys from the terminal.
var AppMan = require('hbbtv-lib/main/appman');
AppMan.show();
AppMan.addKey(AppMan.COLOR);
AppMan.addKey(AppMan.NAVIGATION);
Members
(static, constant) ALL
- Source:
(static, constant) BLUE
- Source:
(static, constant) COLOR
- Source:
(static, constant) GREEN
- Source:
(static, constant) NAVIGATION
- Source:
(static, constant) NONE
- Source:
(static, constant) NUMERIC
- Source:
(static, constant) RED
- Source:
(static, constant) VCR
- Source:
(static, constant) YELLOW
- Source:
Methods
(static) addActivationListener(callback)
Parameters:
Name | Type | Description |
---|---|---|
callback |
function | Callback function that is notfied after the activation listener has been called |
- Source:
(static) addKey(keyCode)
Add a keyset constant(s) to the requested set of remote control (RC) keys.
RC keys in HbbTV 2 are split into a set that is available all time and a set that is available only after activation of the app. The app is activated when the user presses a key from the first set assuming the application had requested it.
Keys available all time: NAVIGATION, COLOUR.
Keys available after activation: NUMERICAL, VCR.
The keyset always shows which keys are available to the application, i.e. if the requested keyset is larger than the keys that are available, the resulting keyset contains only a subset of the requested one.
You can use the appman to add all required keys by your application before activation, however you have to use applyKeyset after your application got activated.
On terminals running HbbTV 1.x RC keys are always available to applications.
Note: Use this function carefully, request only keys you need and release keys with remKey when you don't need a key any longer.
Parameters:
Name | Type | Description |
---|---|---|
keyCode |
number |
- Source:
- To Do:
-
- success/error feedback for user
(static) applyKeyset()
- Source:
- See:
- To Do:
-
- success/error feedback for user
(static) createApp(url)
Use dvb: URLs to launch another broadcast-related application
Use https: URLs to launch a broadcast independent application
Parameters:
Name | Type | Description |
---|---|---|
url |
* | URL of application to run, |
- Source:
- To Do:
-
- success/error feedback for user
(static) getCurrentChannel() → {number}
- Source:
- To Do:
-
- success/error feedback for user
Returns:
- Type
- number
(static) hide()
- Source:
- To Do:
-
- success/error feedback for user
(static) killme()
- Source:
- To Do:
-
- success/error feedback for user
(static) remKey(keyCode)
Parameters:
Name | Type | Description |
---|---|---|
keyCode |
number | keys to release, return to control of terminal |
- Source:
(static) show()
- Source:
- To Do:
-
- success/error feedback for user