Changes

Jump to: navigation, search

WebAPI/WebTelephony

20 bytes added, 23:55, 1 December 2011
Proposed API
interface Telephony : EventTarget {
TelephonyCall dial(DOMString number); // Returns a object in "dialing" state
attribute boolean muted; // Should these live on the call/group?
attribute boolean speakerOn;
}
[Constructor(DOMString)]
interface TelephonyCall : EventTarget {
readonly attribute DOMString number;
readonly attribute DOMString readyState; // "callingdialing", "ringing", "incommingbusy", "connectedconnecting", "closedconnected", "busydisconnecting" // Can we get info on when a call goes from , "trying to place calldisconnected" to , "callingincoming"?  attribute Function onconnectonreadystatechange; attribute Function ondisconnectonringing;
attribute Function onbusy;
attribute Function onconnecting; attribute Function onconnected; attribute Function ondisconnecting; attribute CallGroup? groupFunction ondisconnected;
void answer(); // Should this make the call the active one?
void disconnect();
// void hold(); Not These need to be made async. Also not sure if they are needed for now. We might need to remake group APi to make it with a proper async3-way API
// void resume();
}
[Constructor()]
interface CallGroup {
TelephonyCall item(unsigned long index);
readonly attribute unsigned long length;
}
Confirm
716
edits

Navigation menu