Confirmed users
978
edits
No edit summary |
No edit summary |
||
| Line 52: | Line 52: | ||
</li></ul> | </li></ul> | ||
<p><br /> | <p><br /> | ||
</p><p> | </p><p><img src="/images/3/3f/Proposal_TelephonyCallStates.png" _fck_mw_filename="Proposal TelephonyCallStates.png" alt="" /> | ||
</p> | </p> | ||
<h3> | <h3> Proposal: Enhance WebTelephony API to hold a call </h3> | ||
<p>interface nsIDOMTelephony : nsIDOMEventTarget<br />{<br /> nsIDOMTelephonyCall dial(in DOMString number); | <p>interface nsIDOMTelephony : nsIDOMEventTarget<br />{<br /> nsIDOMTelephonyCall dial(in DOMString number); | ||
</p><p>attribute boolean muted;<br /> attribute boolean speakerEnabled; | </p><p>attribute boolean muted;<br /> attribute boolean speakerEnabled; | ||
</p><p>// The call that is "active", i.e. receives microphone input and tones<br /> // generated via startTone.<br /> readonly attribute jsval active; | </p><p>// The call that is "active", i.e. receives microphone input and tones<br /> // generated via startTone.<br /> readonly attribute jsval active; | ||
</p><p>// Array of all calls that are currently connected.<br /> readonly attribute jsval calls; | </p><p>// Array of all calls that are currently connected.<br /> readonly attribute jsval calls; | ||
</p><p>void startTone(in DOMString tone);<br /> void stopTone(); | </p><p>void startTone(in DOMString tone);<br /> void stopTone(); | ||
</p><p>attribute nsIDOMEventListener onincoming;<br /> attribute nsIDOMEventListener onwaiting; //new<br /> attribute nsIDOMEventListener oncallschanged;<br />}; | </p><p>attribute nsIDOMEventListener onincoming;<br /> attribute nsIDOMEventListener onwaiting; //new<br /> attribute nsIDOMEventListener oncallschanged;<br />}; | ||
</p><p>interface nsIDOMTelephonyCall : nsIDOMEventTarget<br />{<br /> readonly attribute DOMString number;<br /> readonly attribute DOMString state;<br /> // "dialing", "ringing", "busy", "connecting", "connected", "disconnecting", "disconnected", "incoming",<br /> // Add new states: "waiting", "holding", "held", "resuming" | </p><p>interface nsIDOMTelephonyCall : nsIDOMEventTarget<br />{<br /> readonly attribute DOMString number;<br /> readonly attribute DOMString state;<br /> // "dialing", "ringing", "busy", "connecting", "connected", "disconnecting", "disconnected", "incoming",<br /> // Add new states: "waiting", "holding", "held", "resuming" | ||
</p><p>void answer(); //make an incoming call or a waiting call into <br /> //"connected"<br /> void hangUp(); <br /> void holdCal(); //change a connected call into "held"<br /> void resumeCall(); //change a "held" call into connected | </p><p>void answer(); //make an incoming call or a waiting call into <br /> //"connected"<br /> void hangUp(); <br /> void holdCal(); //change a connected call into "held"<br /> void resumeCall(); //change a "held" call into connected | ||
</p><p>attribute nsIDOMEventListener onstatechange; | </p><p>attribute nsIDOMEventListener onstatechange; | ||
</p><p>attribute nsIDOMEventListener ondialing;<br /> attribute nsIDOMEventListener onringing;<br /> attribute nsIDOMEventListener onbusy;<br /> attribute nsIDOMEventListener onconnecting;<br /> attribute nsIDOMEventListener onconnected;<br /> attribute nsIDOMEventListener ondisconnecting;<br /> attribute nsIDOMEventListener ondisconnected;<br /> <br /> // attribute nsIDOMEventListener onincoming;<br /> attribute nsIDOMEventListener onholding; //new<br /> attribute nsIDOMEventListener onheld; //new<br /> attribute nsIDOMEventListener onresuming; //new<br />}; <br /> | </p><p>attribute nsIDOMEventListener ondialing;<br /> attribute nsIDOMEventListener onringing;<br /> attribute nsIDOMEventListener onbusy;<br /> attribute nsIDOMEventListener onconnecting;<br /> attribute nsIDOMEventListener onconnected;<br /> attribute nsIDOMEventListener ondisconnecting;<br /> attribute nsIDOMEventListener ondisconnected;<br /> <br /> // attribute nsIDOMEventListener onincoming;<br /> attribute nsIDOMEventListener onholding; //new<br /> attribute nsIDOMEventListener onheld; //new<br /> attribute nsIDOMEventListener onresuming; //new<br />}; <br /> | ||
</p> | </p> | ||