${this.registered ? this.getStateLabel() : 'Connecting...'}
${this.appData.browserDeviceId ? html`
ID: ${this.appData.browserDeviceId.slice(0, 12)}...
` : ''}
${this.rtcState === 'connected' || this.calling ? html`
${this.dialNumber ? html`
${this.dialNumber}
` : ''}
` : ''}
${this.rtcState === 'connected' ? html`
` : ''}
({
option: d.label || 'Microphone',
key: d.deviceId,
}))}
.selectedOption=${this.selectedInput ? {
option: this.audioDevices.inputs.find((d) => d.deviceId === this.selectedInput)?.label || 'Microphone',
key: this.selectedInput,
} : null}
@selectedOption=${(e: CustomEvent) => { this.selectedInput = e.detail.key; this.rtcClient?.setInputDevice(this.selectedInput); }}
>
({
option: d.label || 'Speaker',
key: d.deviceId,
}))}
.selectedOption=${this.selectedOutput ? {
option: this.audioDevices.outputs.find((d) => d.deviceId === this.selectedOutput)?.label || 'Speaker',
key: this.selectedOutput,
} : null}
@selectedOption=${(e: CustomEvent) => { this.selectedOutput = e.detail.key; this.rtcClient?.setOutputDevice(this.selectedOutput); }}
>
Incoming Calls
${this.incomingCalls.length ? this.incomingCalls.map((call) => html`
RINGING
${call.from}
`) : html`
No incoming calls
`}