()
| 1 | import type { StreamStats } from "./streamTypes"; |
| 2 | |
| 3 | export function createEmptyStreamStats(): StreamStats { |
| 4 | return { |
| 5 | averageRenderMs: 0, |
| 6 | codec: "", |
| 7 | decodeQueueSize: 0, |
| 8 | decodedFrames: 0, |
| 9 | decoderDroppedFrames: 0, |
| 10 | droppedFrames: 0, |
| 11 | frameSequence: 0, |
| 12 | height: 0, |
| 13 | iceRestartReason: "", |
| 14 | iceRestarts: 0, |
| 15 | latestFrameGapMs: 0, |
| 16 | latestRenderMs: 0, |
| 17 | maxRenderMs: 0, |
| 18 | packetsLost: 0, |
| 19 | presentationDroppedFrames: 0, |
| 20 | receivedPackets: 0, |
| 21 | reconnectReason: "", |
| 22 | reconnects: 0, |
| 23 | renderedFrames: 0, |
| 24 | waitingForKeyFrame: false, |
| 25 | width: 0, |
| 26 | }; |
| 27 | } |
no outgoing calls
no test coverage detected