diff --git a/src/component/internal/webrtc.ts b/src/component/internal/webrtc.ts index b1d3e4cb..6b5e95a8 100644 --- a/src/component/internal/webrtc.ts +++ b/src/component/internal/webrtc.ts @@ -1,4 +1,5 @@ import EventEmitter from 'eventemitter3' +import { WebRTCStats } from '../types/webrtc' import { Logger } from '../utils/logger' export const OPCODE = { @@ -10,15 +11,6 @@ export const OPCODE = { BTN_UP: 0x06, } as const -export interface WebRTCStats { - bitrate: number - packetLoss: number - fps: number - width: number - height: number - muted?: boolean -} - export interface ICEServer { urls: string username: string diff --git a/src/component/types/webrtc.ts b/src/component/types/webrtc.ts new file mode 100644 index 00000000..8c4fb5ca --- /dev/null +++ b/src/component/types/webrtc.ts @@ -0,0 +1,8 @@ +export interface WebRTCStats { + bitrate: number + packetLoss: number + fps: number + width: number + height: number + muted?: boolean +}