ToiVideoOutputService Interface Reference
Description
- Service:
- This is a service and can be accessed through toi.videoOutputService
The Video Output Service is used to get and set video output configurations. It is also used to setup adaptive video mode rule sets. Adaptive video mode rule sets are mainly used to handle automatic aspect ratio conversion upon changes in the currently displayed video content. Adaptive video mode rule sets are defined at build time.
The Video Output service is also used to create instances of configuration sessions to modify the current video mode settings.
import "ToiVideoOutputService.idl";
List of all members.
Member Typedef Documentation
Sequence of adaptive video ruleset names.
Sequence of adaptive state transitions.
Member Function Documentation
This method registers an event listener for a specific event. Multiple listeners can be added for the same event. Events are broadcast to all registered listeners.
- Parameters:
-
| type | The event type of the event to subscribe to. |
| listener | The JavaScript function that will receive events. |
- Exceptions:
-
| TInvalidArgumentException | Raised if the event type is not supported by this object or if the listener is not a valid JavaScript function. This exception is also raised if the application calls addEventListener with the same combination of type and listener twice. |
This method creates a session that makes it possible to change the video output configuration.
- Return values:
-
- Exceptions:
-
Get a sequence of rule set names based on the available adaptive video rule sets that can be loaded.
- Return values:
-
| adaptiveRuleSets | A sequence of rule sets names. |
Get a sequence of rule set names based on the adaptive video rule sets that have been loaded.
- Return values:
-
| adaptiveRuleSets | A sequence of rule sets names. |
This method returns an address to the current video output configuration.
- Return values:
-
Loads a sequence of adaptive video rule sets based on their names. An empty sequence will unload all currently loaded rule sets. Each rule within a loaded rule set is evaluated in the order it is placed and all rule sets are evaluated in parallel.
- Parameters:
-
| adaptiveRuleSets | A sequence of rule set names. |
- Exceptions:
-
This method removes an event listener for a specific event.
- Parameters:
-
| type | The event type of the event to remove the listener from. |
| listener | The JavaScript function that was previously added as an event listener. |
- Exceptions:
-
| TInvalidArgumentException | Raised if the event type is not supported by this object or if the listener is not a valid JavaScript function. This exception is also raised if the listener had not previously been added. |
Sets the video outputs into a safe mode configuration.
- Exceptions:
-
Member Data Documentation