Changes

Jump to: navigation, search

WebAPI/WebTelephony

1,429 bytes added, 02:20, 30 June 2012
DOM API
// Array of all calls that are currently connected.
readonly attribute jsval calls;
 
readonly attribute nsIDOMTelephonyCallGroup conferanceGroup;
void startTone(in DOMString tone);
// "disconnected", "incoming", "holding", "held", "resuming"
readonly attribute DOMString state;
 
readonly attribute nsIDOMTelephonyCallGroup group;
// functions to mediate a call.
void hangUp();
void hold();
// Resuming a group automatically holds any other groups/calls
void resume();
attribute nsIDOMEventListener onheld;
attribute nsIDOMEventListener onresuming;
};
interface nsIDOMTelephonyCallGroup : nsIDOMEventTarget
{
// Array of all calls that are currently in this group. The length
// of this array is never 1.
readonly attribute jsval calls;
 
// Add a call to the callgroup. call2 must not be specified if the
// callgroup isn't empty.
// If the callgroup is empty both call and call2 must be specified,
// and one of them must be in 'held' state and the other in
// 'connected' state.
// Neither call or call2 can be in 'disconnected' state.
void add(nsIDOMTelephonyCall call, optional nsIDOMTelephonyCall call2);
 
// Removes a call from the callgroup. If this leaves the callgroup with
// just one call, then that last call is also removed from the callgroup.
void remove(nsIDOMTelephonyCall call);
 
void hold();
// Resuming a group automatically holds any other groups/calls
void resume();
 
// When this changes, the state of all contained calls changes at the same time
readonly attribute DOMString state;
 
attribute nsIDOMEventListener onstatechange;
attribute nsIDOMEventListener onconnected;
attribute nsIDOMEventListener onholding;
attribute nsIDOMEventListener onheld;
attribute nsIDOMEventListener onresuming;
};
Confirm
716
edits

Navigation menu