WebAPI/WebTelephony: Difference between revisions

Jump to navigation Jump to search
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 sendTone(DOMString dtmfTones);
     void startTone(DOMString tone);
    void stopTone();
 
    void sendTones(DOMString tones,
                  [optional] unsigned long toneDuration,
                  [optional] unsigned long intervalDuration);
   }
   }
    
    
Confirmed users
137

edits

Navigation menu