MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / createEmptyStreamStats

Function createEmptyStreamStats

packages/client/src/features/stream/stats.ts:3–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import type { StreamStats } from "./streamTypes";
2
3export 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}

Callers 3

WebRtcStreamClientClass · 0.90
useLiveStreamFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected