D0301
HTML Application SDK  A1.8
Classes | Public Member Functions | Public Attributes | List of all members
InputManager Interface Reference

import"InputManagerPlugin.idl";

Classes

interface  currentAVInputChangeEvent
 
interface  externalSourceListUpdated
 

Public Member Functions

void addEventListener ([in] String event_name, [in] EventListener listener)
 
AVInput[] getAVInputs ()
 
AVInput getCurrentAVInput ()
 
void removeEventListener ([in] String event_name, [in] EventListener listener)
 
void removeEventListener ([in] String event_name)
 
void selectSource ([in] AVInput input)
 
void setVideoWindow ([in] Integer x, [in] Integer y, [in] Integer width, [in] Integer height)
 
void stopCurrentSource ()
 

Public Attributes

const Integer AttributesChanged = 3
 
const Integer AutoAdjustDone = 6
 
const Integer Connected = 1
 
const Integer Disconnected = 2
 
const Integer None = 0
 
const Integer SourceChanged = 7
 
const Integer VideoLost = 5
 
const Integer VideoReady = 4
 

Detailed Description

This is a class which implements global InputManager object.

Member Function Documentation

void InputManager.addEventListener ( [in] String  event_name,
[in] EventListener  listener 
)

Adds DOM2 event listener for specified event.

Possible values are: event_name: "currentAVInputChangeEvent", listener: function that has arguments similar to the currentAVInputChangeEvent interface properties.

Parameters
event_nameName of the event.
listenerjavascript function that has arguments like the properties listed in the listener's interface.
AVInput [] InputManager.getAVInputs ( )

This function returns list of AVInputs that is enabled from profile.

var avInputs = InputManager.getAVInputs();
Returns
List of available AVInputs
AVInput InputManager.getCurrentAVInput ( )

This function returns current AV Input.

var currentInput = InputManager.getCurrentAVInput();
Returns
Current AVInput
void InputManager.removeEventListener ( [in] String  event_name,
[in] EventListener  listener 
)

Removes single DOM2 event listener for specified event

Possible values are: event_name: "currentAVInputChangeEvent", listener: function that has arguments similar to the currentAVInputChangeEvent interface properties.

Parameters
event_nameName of the event
listenernamed javascript function that has arguments like the properties listed in the listener's interface.
void InputManager.removeEventListener ( [in] String  event_name)

Removes all DOM2 event listeners for specified event

Parameters
event_nameName of the event
See also
removeEventListener([in] String event_name, [in] EventListener listener);
void InputManager.selectSource ( [in] AVInput  input)

Selects the specified AVInput.

InputManager.selectSource(avInputs.item(i));
Parameters
inputAVInput object.
void InputManager.setVideoWindow ( [in] Integer  x,
[in] Integer  y,
[in] Integer  width,
[in] Integer  height 
)

Set the video position to the specified coordinates.

InputManager.setVideoWindow(0, 0, 480, 270);
Parameters
xX coordinate of the new video position.
yY coordinate of the new video position.
widthWidth of the new video position.
heightHeight of the new video position.
void InputManager.stopCurrentSource ( )

Stop currently selected AVInput.

Member Data Documentation

const Integer InputManager.AttributesChanged = 3

External Interface Status AttributesChanged

const Integer InputManager.AutoAdjustDone = 6

External Interface Status AutoAdjustDone

const Integer InputManager.Connected = 1

External Interface Status Connected

const Integer InputManager.Disconnected = 2

External Interface Status Disconnected

const Integer InputManager.None = 0

External Interface Status None

const Integer InputManager.SourceChanged = 7

External Interface Status SourceChanged

const Integer InputManager.VideoLost = 5

External Interface Status VideoLost

const Integer InputManager.VideoReady = 4

External Interface Status VideoReady


The documentation for this interface was generated from the following file: