WebAPI/WebTelephony: Difference between revisions

(mention that data calls also need to be included as well as voice calls)
Line 9: Line 9:
     attribute boolean muted;          // Should these live on the call/group?
     attribute boolean muted;          // Should these live on the call/group?
     attribute boolean speakerOn;
     attribute boolean speakerOn;
    attribute double speakerVolume;
    attribute boolean doNotDisturb;    // Automatically drops calls. Not sure if needed. Only seems needed
                                      // if supported as a network feature.
    
    
     attribute any active; // Either a call or a group
     attribute any active; // Active call, for now. Could be a group in the future.
    
    
     readonly attribute TelephonyCall[] liveCalls;
     readonly attribute TelephonyCall[] calls;
    readonly attribute CallGroup[] liveGroups;
    
    
     void startTone(DOMString tone);
     void startTone(DOMString tone);
Line 30: Line 26:
     readonly attribute DOMString number;
     readonly attribute DOMString number;
    
    
     readonly attribute DOMString readyState;
     readonly attribute DOMString state;
     // "dialing", "ringing", "busy", "connecting", "connected", "disconnecting", "disconnected", "incoming"
     // "dialing", "ringing", "busy", "connecting", "connected", "disconnecting", "disconnected", "incoming"
    
    
     attribute Function onreadystatechange;
     attribute Function onstatechange;
     attribute Function onringing;
     attribute Function onringing;
     attribute Function onbusy;
     attribute Function onbusy;
Line 43: Line 39:
     void answer(); // Should this make the call the active one?
     void answer(); // Should this make the call the active one?
     void disconnect();
     void disconnect();
 
    // void hold(); These need to be made async. Also not sure if they are needed with a proper async 3-way API
    // void resume();
   }
   }
    
    
Confirmed users
137

edits