webscoker & webrtc: unavailable state.

This commit is contained in:
Miroslav Šedivý 2021-01-31 13:54:47 +01:00
parent 1d1b995ceb
commit d7ee530960
2 changed files with 4 additions and 4 deletions

View File

@ -81,8 +81,8 @@
public state = {
connection: {
authenticated: false,
websocket: 'disconnected',
webrtc: 'disconnected',
websocket: this.websocket.supported ? 'disconnected' : 'unavailable',
webrtc: this.webrtc.supported ? 'disconnected' : 'unavailable',
type: 'none',
can_watch: false,
can_control: false,

View File

@ -12,8 +12,8 @@ export default interface State {
/////////////////////////////
export interface Connection {
authenticated: boolean
websocket: 'disconnected' | 'connecting' | 'connected'
webrtc: 'disconnected' | 'connecting' | 'connected'
websocket: 'unavailable' | 'disconnected' | 'connecting' | 'connected'
webrtc: 'unavailable' | 'disconnected' | 'connecting' | 'connected'
type: 'webrtc' | 'fallback' | 'none'
can_watch: boolean
can_control: boolean