Confirmed users
137
edits
Bent.mozilla (talk | contribs) |
Bent.mozilla (talk | contribs) |
||
| Line 19: | Line 19: | ||
attribute boolean speaker; | attribute boolean speaker; | ||
attribute any active; // Either a session or a group | readonly attribute any active; // Either a session or a group | ||
attribute sequence<TelephonySession> sessions; | readonly attribute sequence<TelephonySession> sessions; | ||
attribute sequence<TelephonySessionGroup> groups; | readonly attribute sequence<TelephonySessionGroup> groups; | ||
attribute Function onincoming; | attribute Function onincoming; | ||
| Line 28: | Line 28: | ||
interface TelephonySession : EventTarget { | interface TelephonySession : EventTarget { | ||
readonly DOMString number; | readonly attribute DOMString number; | ||
readonly attribute DOMString readyState; // "calling", "incomming", "connected", "closed" | readonly attribute DOMString readyState; // "calling", "incomming", "connected", "closed" | ||
| Line 37: | Line 37: | ||
attribute TelephonySessionGroup? group; | attribute TelephonySessionGroup? group; | ||
answer(); // Should this make the session the active one? | void answer(); // Should this make the session the active one? | ||
hangUp(); | void hangUp(); | ||
void | void startTone(DOMString tone); | ||
void stopTone(); | |||
void sendTones(DOMString tones, | |||
[optional] unsigned long toneDuration, | |||
[optional] unsigned long intervalDuration); | |||
} | } | ||