WebAPI/WebTelephony: Difference between revisions

Line 14: Line 14:


   interface Telephony : EventTarget {
   interface Telephony : EventTarget {
     TelephonySession connect(DOMString number); // Should this make the session the active one?
     attribute boolean muted;           // Should these live on the call/group?
    attribute boolean speakerOn;
    attribute double speakerVolume;
    
    
     attribute boolean mute; // Should these live on the session/group?
     attribute any active; // Either a call or a group
    attribute boolean speaker;
    
    
    attribute any active; // Either a session or a group
     readonly attribute TelephonyCall[] liveCalls;
 
     readonly attribute CallGroup[] liveGroups;
     readonly attribute TelephonySession[] liveSessions;
     readonly attribute TelephonySessionGroup[] liveGroups;
    
    
     void startTone(DOMString tone);
     void startTone(DOMString tone);
Line 33: Line 32:
   }
   }
    
    
   interface TelephonySession : EventTarget {
  [Constructor(DOMString)]
   interface TelephonyCall : EventTarget {
     readonly attribute DOMString number;
     readonly attribute DOMString number;
    
    
Line 42: Line 42:
     attribute Function onbusy;
     attribute Function onbusy;
    
    
     attribute TelephonySessionGroup? group;
     attribute CallGroup? group;
    
    
     void answer(); // Should this make the session the active one?
     void answer(); // Should this make the call the active one?
     void hangUp();
     void hangUp();
   }
   }
    
    
   [Constructor()]
   [Constructor()]
   interface TelephonySessionGroup {
   interface CallGroup {
     TelephonySession item(unsigned long index);
     TelephonyCall item(unsigned long index);
     readonly attribute unsigned long length;
     readonly attribute unsigned long length;
   }
   }
    
    
   interface IncommingCallEvent : Event {
   interface CallEvent : Event {
     readonly attribute TelephonySession session;
     readonly attribute TelephonyCall call;
   }
   }
Confirmed users
716

edits