Confirmed users
716
edits
No edit summary |
|||
Line 4: | Line 4: | ||
interface Telephony : EventTarget { | 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 muted; // Should these live on the call/group? | ||
attribute boolean speakerOn; | attribute boolean speakerOn; | ||
Line 24: | Line 25: | ||
} | } | ||
interface TelephonyCall : EventTarget { | interface TelephonyCall : EventTarget { | ||
readonly attribute DOMString number; | readonly attribute DOMString number; | ||
readonly attribute DOMString readyState; // " | readonly attribute DOMString readyState; | ||
// "dialing", "ringing", "busy", "connecting", "connected", "disconnecting", "disconnected", "incoming" | |||
attribute Function | |||
attribute Function | attribute Function onreadystatechange; | ||
attribute Function onringing; | |||
attribute Function onbusy; | attribute Function onbusy; | ||
attribute Function onconnecting; | |||
attribute | attribute Function onconnected; | ||
attribute Function ondisconnecting; | |||
attribute Function ondisconnected; | |||
void answer(); // Should this make the call the active one? | void answer(); // Should this make the call the active one? | ||
void disconnect(); | void disconnect(); | ||
// void hold(); | // void hold(); These need to be made async. Also not sure if they are needed with a proper async 3-way API | ||
// void resume(); | // void resume(); | ||
} | } | ||