mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add webrtc_stats to state.
This commit is contained in:
@ -14,9 +14,18 @@ export interface Connection {
|
||||
authenticated: boolean
|
||||
websocket: 'unavailable' | 'disconnected' | 'connecting' | 'connected'
|
||||
webrtc: 'unavailable' | 'disconnected' | 'connecting' | 'connected'
|
||||
webrtc_stats: WebRTCStats | null
|
||||
type: 'webrtc' | 'fallback' | 'none'
|
||||
}
|
||||
|
||||
export interface WebRTCStats {
|
||||
bitrate: number
|
||||
packetLoss: number
|
||||
fps: number
|
||||
width: number
|
||||
height: number
|
||||
}
|
||||
|
||||
/////////////////////////////
|
||||
// Video
|
||||
/////////////////////////////
|
||||
|
Reference in New Issue
Block a user