Changes

Jump to: navigation, search

WebAPI/WebTelephony

24 bytes added, 07:46, 20 March 2012
no edit summary
</li></ul>
<p><br />
</p><p><&lt;img src="/images/3/3f/Proposal_TelephonyCallStates.png" _fck_mw_filename="Proposal TelephonyCallStates.png" alt="" /> &gt;
</p>
<h3> Proposed Web Telephony Proposal: Enhance WebTelephony API to hold a call </h3><p>interface nsIDOMTelephony&#160;: nsIDOMEventTarget<br />{<br /> nsIDOMTelephonyCall dial(in DOMString number);</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>// 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>attribute nsIDOMEventListener onincoming;<br /> attribute nsIDOMEventListener onwaiting; //new<br /> attribute nsIDOMEventListener oncallschanged;<br />};</p><p>interface nsIDOMTelephonyCall&#160;: 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>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>
Confirm
978
edits

Navigation menu