mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
webrtc extract type.
This commit is contained in:
parent
27ca2e0719
commit
fdc7412afc
@ -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
|
||||||
|
8
src/component/types/webrtc.ts
Normal file
8
src/component/types/webrtc.ts
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
export interface WebRTCStats {
|
||||||
|
bitrate: number
|
||||||
|
packetLoss: number
|
||||||
|
fps: number
|
||||||
|
width: number
|
||||||
|
height: number
|
||||||
|
muted?: boolean
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user