| ARRIS Enterprises, Inc. Confidential Information |
Video Output ServiceInitialization
The TOI interface provides an instance of a
<sdk_root>/examples/example-html-portal/modules/settings/settings.js
In a similar way to previous examples, the portal registers
a listener/callback function ( Loading AVM rule setsAnother important part of initializing the video output is loading in an appropriate AVM ruleset. Adaptive Video Mode, or AVM, is a system to automatically scale, translate, letterbox or pillarbox content automatically, based on information in the stream and a set of XML rules. See here for further details on how it works and how the rules are defined. The example portal loads the default rules: <sdk_root>/examples/example-html-portal/index.js
Finding the HDMI output
The TOI API has support for STBs with multiple HDMI and Scart outputs,
although no current STB model has more than one of each. To find the
current HDMI output, a list of all output IDs is obtained, the
<sdk_root>/examples/example-html-portal/modules/settings/settings.js
Once the HDMI output has been found, the
A few TVs do not report their acceptable video modes correctly
in their EDID. If this is the case, you can ignore the <sdk_root>/examples/example-html-portal/modules/settings/settings.js
Making changes
Changes to the video configuration are implemented using sessions.
The intended changes to the output are made to the session using the
The application of the session is an asynchronous operation, so the portal provides an object containing functions to run when the operation completes: <sdk_root>/examples/example-html-portal/modules/settings/settings.js
While the async call is in progress, it is not permitted to
call any other session methods other than
Once the application has completed, call
Although this portal only deals with the HDMI output, if you are also handling
a Scart output then it is OK to call
Once applied, the portals
Sometimes it is nice to display a dialog of the form
"Press OK if everything looks OK, otherwise reverting in 10 seconds...".
This is especially important if you are ignoring the EDID information
from a TV, for example. This is easily achieved by popping up a dialog
box in the |