webrtc extract type.

This commit is contained in:
Miroslav Šedivý 2021-07-17 15:06:32 +02:00
parent 27ca2e0719
commit fdc7412afc
2 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,5 @@
import EventEmitter from 'eventemitter3' import EventEmitter from 'eventemitter3'
import { WebRTCStats } from '../types/webrtc'
import { Logger } from '../utils/logger' import { Logger } from '../utils/logger'
export const OPCODE = { export const OPCODE = {
@ -10,15 +11,6 @@ export const OPCODE = {
BTN_UP: 0x06, BTN_UP: 0x06,
} as const } as const
export interface WebRTCStats {
bitrate: number
packetLoss: number
fps: number
width: number
height: number
muted?: boolean
}
export interface ICEServer { export interface ICEServer {
urls: string urls: string
username: string username: string

View File

@ -0,0 +1,8 @@
export interface WebRTCStats {
bitrate: number
packetLoss: number
fps: number
width: number
height: number
muted?: boolean
}