Interface ISingleInitialState

Optional initial state for ISingleCallControl.

Used to set the initial state if the device was changed in the middle of a call, or to recover the state after device disconnections.

interface ISingleInitialState {
    callActive: boolean;
    muted?: boolean;
}

Properties

Properties

callActive: boolean

Set to true to set device into a in-call state.

If set to false, the subsequent argument for ISingleInitialState.muted will be ignored (setting mute state on an idle device is not supported).

muted?: boolean

true to mute the device and false to unmute.

Can only be set to true if ISingleInitialState.callActive is also set to true.