Talk:WebAPI/WebTelephony: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Created page with "Counter proposal: navigator.telephony would return an object with the following interface interface Telephony : EventTarget { TelephonySession newSession(DOMString numbe...")
 
No edit summary
Line 9: Line 9:
     attribute Function onincoming;
     attribute Function onincoming;
   }
   }
 
   interface TelephonySession : EventTarget {
   interface TelephonySession : EventTarget {
     readonly attribute DOMString originNumber;
     readonly attribute DOMString originNumber;
Line 25: Line 24:
     void hangUp();
     void hangUp();
   }
   }
 
   interface IncomingCallEvent : Event {
   interface IncomingCallEvent : Event {
     readonly attribute TelephonySession session;
     readonly attribute TelephonySession session;
   }
   }

Revision as of 11:54, 7 September 2011

Counter proposal:


navigator.telephony would return an object with the following interface

 interface Telephony : EventTarget {
   TelephonySession newSession(DOMString number); // Multiple number call??
 
   attribute Function onincoming;
 }
 interface TelephonySession : EventTarget {
   readonly attribute DOMString originNumber;
   readonly attribute DOMString number;
  void start();
 
   readonly attribute DOMString readyState; // "calling", "incomming", "connected", "closed", "busy"
   // Can we get info on when a call goes from "trying to place call" to "calling"?
   attribute Function onconnect;
   attribute Function ondisconnect;
   attribute Function onbusy;
 
   void answer(); // Should this make the session the active one?
   void hangUp();
  }
 interface IncomingCallEvent : Event {
   readonly attribute TelephonySession session;
 }