@arcware-cloud/pixelstreaming-websdk 1.2.17 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +9 -0
  2. package/index.cjs.js +957 -697
  3. package/index.esm.js +969 -702
  4. package/index.umd.js +957 -697
  5. package/package.json +1 -1
  6. package/types/index.d.ts +3 -0
  7. package/types/lib/ApplyUrlHack.d.ts +2 -0
  8. package/types/lib/ArcwareApplication.d.ts +52 -0
  9. package/types/lib/ArcwareConfig.d.ts +35 -0
  10. package/types/lib/ArcwareInit.d.ts +15 -0
  11. package/types/lib/ArcwarePixelStreaming.d.ts +104 -0
  12. package/types/lib/MessageTypes.d.ts +4 -0
  13. package/types/lib/domain/ArcwareSettingsSchema.d.ts +209 -0
  14. package/types/lib/domain/ConnectionIdentifier.d.ts +27 -0
  15. package/types/lib/domain/EventHandler.d.ts +11 -0
  16. package/types/lib/domain/Session.d.ts +29 -0
  17. package/types/lib/domain/Stats.d.ts +36 -0
  18. package/types/lib/domain/debounce.d.ts +1 -0
  19. package/types/lib/features/ArcwareEventUtil.d.ts +28 -0
  20. package/types/lib/features/ArcwareFileTransferUtil.d.ts +13 -0
  21. package/types/lib/features/DiagnosticsCollector.d.ts +181 -0
  22. package/types/lib/features/common.d.ts +13 -0
  23. package/types/lib/index.d.ts +6 -0
  24. package/types/lib/styles/ArcwarePixelStreamingApplicationStyles.d.ts +478 -0
  25. package/types/lib/ui/ArcwareLogoLoader/index.d.ts +6 -0
  26. package/types/lib/ui/AudioButton/AudioIcon.d.ts +7 -0
  27. package/types/lib/ui/AudioButton/index.d.ts +15 -0
  28. package/types/lib/ui/LoveLetters/index.d.ts +6 -0
  29. package/types/lib/ui/MicButton/index.d.ts +14 -0
  30. package/types/lib/ui/MicIcon/index.d.ts +7 -0
  31. package/types/lib/ui/MicrophoneOverlay/index.d.ts +11 -0
  32. package/types/lib/ui/PlayIcon/index.d.ts +5 -0
  33. package/types/lib/ui/StopButton/index.d.ts +16 -0
  34. package/types/lib/ui/StopIcon/index.d.ts +5 -0
  35. package/types/shared/index.d.ts +1 -0
  36. package/types/shared/lib/Messages/ErrorMessage.d.ts +18 -0
  37. package/types/shared/lib/Messages/LoveLetter.d.ts +18 -0
  38. package/types/shared/lib/Messages/Ping.d.ts +15 -0
  39. package/types/shared/lib/Messages/Queue.d.ts +58 -0
  40. package/types/shared/lib/Messages/SessionId.d.ts +12 -0
  41. package/types/shared/lib/Messages/Stats.d.ts +182 -0
  42. package/types/shared/lib/Messages/StreamInfo.d.ts +338 -0
  43. package/types/shared/lib/Messages/Version.d.ts +12 -0
  44. package/types/shared/lib/Messages/WebSdkSettings.d.ts +96 -0
  45. package/types/shared/lib/Messages/index.d.ts +192 -0
  46. package/types/shared/lib/index.d.ts +1 -0
  47. package/.npmiognore +0 -1
@@ -0,0 +1,6 @@
1
+ export declare class LoveLetters {
2
+ loveLettersRoot: HTMLElement | null;
3
+ constructor();
4
+ addLetter(letter: string, listLength: number): void;
5
+ updateOpacity(listLength: number): void;
6
+ }
@@ -0,0 +1,14 @@
1
+ import { ArcwarePixelStreaming } from "../../ArcwarePixelStreaming";
2
+ export declare class MicButton {
3
+ private button;
4
+ private stream;
5
+ private micIcon;
6
+ private tooltipText;
7
+ constructor(stream: ArcwarePixelStreaming);
8
+ private setMicMutedByDefault;
9
+ private createButton;
10
+ private createTooltipText;
11
+ private toggleMic;
12
+ private updateMicIcon;
13
+ get element(): HTMLButtonElement;
14
+ }
@@ -0,0 +1,7 @@
1
+ export declare class MicIcon {
2
+ micIconUnmuted: SVGElement;
3
+ micIconMuted: SVGElement;
4
+ constructor();
5
+ private createMicIconUnmuted;
6
+ private createMicIconMuted;
7
+ }
@@ -0,0 +1,11 @@
1
+ import { ArcwarePixelStreaming } from "../../ArcwarePixelStreaming";
2
+ export declare class MicrophoneOverlay {
3
+ private overlay;
4
+ private parentElement;
5
+ private micIcon;
6
+ private stream;
7
+ constructor(stream: ArcwarePixelStreaming);
8
+ createOverlay(): void;
9
+ toggleMessage(enabled: boolean): void;
10
+ toggleVisibility(visible: boolean): void;
11
+ }
@@ -0,0 +1,5 @@
1
+ export declare class PlayIcon {
2
+ playIcon: SVGElement;
3
+ constructor();
4
+ private createPlayIcon;
5
+ }
@@ -0,0 +1,16 @@
1
+ import { ArcwarePixelStreaming } from "../../ArcwarePixelStreaming";
2
+ export declare class StopButton {
3
+ private button;
4
+ private stream;
5
+ private stopIcon;
6
+ private playIcon;
7
+ private tooltipText;
8
+ private isStreaming;
9
+ constructor(stream: ArcwarePixelStreaming);
10
+ private createButton;
11
+ private createTooltipText;
12
+ private toggleStreaming;
13
+ private updateButtonIcon;
14
+ get element(): HTMLButtonElement;
15
+ private updateButtonState;
16
+ }
@@ -0,0 +1,5 @@
1
+ export declare class StopIcon {
2
+ stopIcon: SVGElement;
3
+ constructor();
4
+ private createStopIcon;
5
+ }
@@ -0,0 +1 @@
1
+ export * from "./lib";
@@ -0,0 +1,18 @@
1
+ import { z } from "zod";
2
+ export declare const ZErrorMessage: z.ZodObject<{
3
+ type: z.ZodLiteral<"error">;
4
+ code: z.ZodNumber;
5
+ reason: z.ZodString;
6
+ verbosity: z.ZodNumber;
7
+ }, "strip", z.ZodTypeAny, {
8
+ type?: "error";
9
+ code?: number;
10
+ reason?: string;
11
+ verbosity?: number;
12
+ }, {
13
+ type?: "error";
14
+ code?: number;
15
+ reason?: string;
16
+ verbosity?: number;
17
+ }>;
18
+ export type ErrorMessage = z.infer<typeof ZErrorMessage>;
@@ -0,0 +1,18 @@
1
+ import { z } from "zod";
2
+ export declare const ZLoveLetter: z.ZodObject<{
3
+ type: z.ZodLiteral<"letter">;
4
+ reason: z.ZodString;
5
+ code: z.ZodNumber;
6
+ verbosity: z.ZodNumber;
7
+ }, "strip", z.ZodTypeAny, {
8
+ type?: "letter";
9
+ reason?: string;
10
+ code?: number;
11
+ verbosity?: number;
12
+ }, {
13
+ type?: "letter";
14
+ reason?: string;
15
+ code?: number;
16
+ verbosity?: number;
17
+ }>;
18
+ export type LoveLetter = z.infer<typeof ZLoveLetter>;
@@ -0,0 +1,15 @@
1
+ import { z } from "zod";
2
+ export declare const ZPing: z.ZodObject<{
3
+ type: z.ZodLiteral<"ping">;
4
+ message: z.ZodOptional<z.ZodString>;
5
+ time: z.ZodNumber;
6
+ }, "strip", z.ZodTypeAny, {
7
+ type?: "ping";
8
+ message?: string;
9
+ time?: number;
10
+ }, {
11
+ type?: "ping";
12
+ message?: string;
13
+ time?: number;
14
+ }>;
15
+ export type Ping = z.infer<typeof ZPing>;
@@ -0,0 +1,58 @@
1
+ import { z } from "zod";
2
+ export declare const ZQueue: z.ZodObject<{
3
+ type: z.ZodLiteral<"queue">;
4
+ queue: z.ZodObject<{
5
+ /** Ticket._id - will not be exposed to frontend. */
6
+ /** Position in queue (zero based). */
7
+ index: z.ZodOptional<z.ZodNumber>;
8
+ /** Length of the queue. */
9
+ queueLength: z.ZodOptional<z.ZodNumber>;
10
+ /** Already waited for. */
11
+ waited: z.ZodOptional<z.ZodNumber>;
12
+ /** Based on Average Watch Time,
13
+ * we calculate an average interval of expected connection closings and based on the amount of concurrent sessions,
14
+ * we can calculate the estimated time until another slot will be freed up. */
15
+ estimatedWaitTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
16
+ /** The average time all current sessions.
17
+ * (How long did it actually take those that waited for them that received a connection to the currently running instances.)
18
+ */
19
+ averageWaitTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
20
+ /** Type of all time-values in the que. */
21
+ valueType: z.ZodEnum<["milliseconds", "seconds", "minutes", "hours", "days"]>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ index?: number;
24
+ queueLength?: number;
25
+ waited?: number;
26
+ estimatedWaitTime?: number;
27
+ averageWaitTime?: number;
28
+ valueType?: "milliseconds" | "seconds" | "minutes" | "hours" | "days";
29
+ }, {
30
+ index?: number;
31
+ queueLength?: number;
32
+ waited?: number;
33
+ estimatedWaitTime?: number;
34
+ averageWaitTime?: number;
35
+ valueType?: "milliseconds" | "seconds" | "minutes" | "hours" | "days";
36
+ }>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ type?: "queue";
39
+ queue?: {
40
+ index?: number;
41
+ queueLength?: number;
42
+ waited?: number;
43
+ estimatedWaitTime?: number;
44
+ averageWaitTime?: number;
45
+ valueType?: "milliseconds" | "seconds" | "minutes" | "hours" | "days";
46
+ };
47
+ }, {
48
+ type?: "queue";
49
+ queue?: {
50
+ index?: number;
51
+ queueLength?: number;
52
+ waited?: number;
53
+ estimatedWaitTime?: number;
54
+ averageWaitTime?: number;
55
+ valueType?: "milliseconds" | "seconds" | "minutes" | "hours" | "days";
56
+ };
57
+ }>;
58
+ export type Queue = z.infer<typeof ZQueue>;
@@ -0,0 +1,12 @@
1
+ import { z } from "zod";
2
+ export declare const ZSessionId: z.ZodObject<{
3
+ type: z.ZodLiteral<"sessionId">;
4
+ sessionId: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ type?: "sessionId";
7
+ sessionId?: string;
8
+ }, {
9
+ type?: "sessionId";
10
+ sessionId?: string;
11
+ }>;
12
+ export type SessionId = z.infer<typeof ZSessionId>;
@@ -0,0 +1,182 @@
1
+ import { z } from "zod";
2
+ export declare const ZStats: z.ZodObject<{
3
+ type: z.ZodLiteral<"stats">;
4
+ stats: z.ZodObject<{
5
+ codecs: z.ZodOptional<z.ZodType<Map<string, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5/dist/types/PeerConnectionController/CodecStats").CodecStats>, z.ZodTypeDef, Map<string, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5/dist/types/PeerConnectionController/CodecStats").CodecStats>>>;
6
+ candidatePair: z.ZodOptional<z.ZodType<import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidatePairStats[], z.ZodTypeDef, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidatePairStats[]>>;
7
+ localCandidates: z.ZodOptional<z.ZodType<import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[], z.ZodTypeDef, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[]>>;
8
+ remoteCandidates: z.ZodOptional<z.ZodType<import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[], z.ZodTypeDef, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[]>>;
9
+ DataChannelStats: z.ZodOptional<z.ZodType<import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").DataChannelStats, z.ZodTypeDef, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").DataChannelStats>>;
10
+ bytesReceived: z.ZodOptional<z.ZodNumber>;
11
+ packetsLost: z.ZodOptional<z.ZodNumber>;
12
+ frameWidth: z.ZodOptional<z.ZodNumber>;
13
+ frameHeight: z.ZodOptional<z.ZodNumber>;
14
+ framesDecoded: z.ZodOptional<z.ZodNumber>;
15
+ framesPerSecond: z.ZodOptional<z.ZodNumber>;
16
+ framesDropped: z.ZodOptional<z.ZodNumber>;
17
+ videoCodec: z.ZodOptional<z.ZodString>;
18
+ audioCodec: z.ZodOptional<z.ZodString>;
19
+ browserInfo: z.ZodOptional<z.ZodObject<{
20
+ userAgent: z.ZodOptional<z.ZodString>;
21
+ platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ language: z.ZodOptional<z.ZodString>;
23
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
24
+ userAgent: z.ZodOptional<z.ZodString>;
25
+ platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ language: z.ZodOptional<z.ZodString>;
27
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
28
+ userAgent: z.ZodOptional<z.ZodString>;
29
+ platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ language: z.ZodOptional<z.ZodString>;
31
+ }, z.ZodTypeAny, "passthrough">>>;
32
+ currentRTT: z.ZodOptional<z.ZodNumber>;
33
+ sessionRunTime: z.ZodOptional<z.ZodString>;
34
+ controlsStreamInput: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
35
+ videoEncoderAvgQP: z.ZodOptional<z.ZodNumber>;
36
+ videoBitrate: z.ZodOptional<z.ZodNumber>;
37
+ audioBitrate: z.ZodOptional<z.ZodNumber>;
38
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
39
+ codecs: z.ZodOptional<z.ZodType<Map<string, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5/dist/types/PeerConnectionController/CodecStats").CodecStats>, z.ZodTypeDef, Map<string, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5/dist/types/PeerConnectionController/CodecStats").CodecStats>>>;
40
+ candidatePair: z.ZodOptional<z.ZodType<import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidatePairStats[], z.ZodTypeDef, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidatePairStats[]>>;
41
+ localCandidates: z.ZodOptional<z.ZodType<import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[], z.ZodTypeDef, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[]>>;
42
+ remoteCandidates: z.ZodOptional<z.ZodType<import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[], z.ZodTypeDef, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[]>>;
43
+ DataChannelStats: z.ZodOptional<z.ZodType<import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").DataChannelStats, z.ZodTypeDef, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").DataChannelStats>>;
44
+ bytesReceived: z.ZodOptional<z.ZodNumber>;
45
+ packetsLost: z.ZodOptional<z.ZodNumber>;
46
+ frameWidth: z.ZodOptional<z.ZodNumber>;
47
+ frameHeight: z.ZodOptional<z.ZodNumber>;
48
+ framesDecoded: z.ZodOptional<z.ZodNumber>;
49
+ framesPerSecond: z.ZodOptional<z.ZodNumber>;
50
+ framesDropped: z.ZodOptional<z.ZodNumber>;
51
+ videoCodec: z.ZodOptional<z.ZodString>;
52
+ audioCodec: z.ZodOptional<z.ZodString>;
53
+ browserInfo: z.ZodOptional<z.ZodObject<{
54
+ userAgent: z.ZodOptional<z.ZodString>;
55
+ platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ language: z.ZodOptional<z.ZodString>;
57
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
58
+ userAgent: z.ZodOptional<z.ZodString>;
59
+ platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ language: z.ZodOptional<z.ZodString>;
61
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
62
+ userAgent: z.ZodOptional<z.ZodString>;
63
+ platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
+ language: z.ZodOptional<z.ZodString>;
65
+ }, z.ZodTypeAny, "passthrough">>>;
66
+ currentRTT: z.ZodOptional<z.ZodNumber>;
67
+ sessionRunTime: z.ZodOptional<z.ZodString>;
68
+ controlsStreamInput: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
69
+ videoEncoderAvgQP: z.ZodOptional<z.ZodNumber>;
70
+ videoBitrate: z.ZodOptional<z.ZodNumber>;
71
+ audioBitrate: z.ZodOptional<z.ZodNumber>;
72
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
73
+ codecs: z.ZodOptional<z.ZodType<Map<string, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5/dist/types/PeerConnectionController/CodecStats").CodecStats>, z.ZodTypeDef, Map<string, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5/dist/types/PeerConnectionController/CodecStats").CodecStats>>>;
74
+ candidatePair: z.ZodOptional<z.ZodType<import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidatePairStats[], z.ZodTypeDef, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidatePairStats[]>>;
75
+ localCandidates: z.ZodOptional<z.ZodType<import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[], z.ZodTypeDef, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[]>>;
76
+ remoteCandidates: z.ZodOptional<z.ZodType<import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[], z.ZodTypeDef, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[]>>;
77
+ DataChannelStats: z.ZodOptional<z.ZodType<import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").DataChannelStats, z.ZodTypeDef, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").DataChannelStats>>;
78
+ bytesReceived: z.ZodOptional<z.ZodNumber>;
79
+ packetsLost: z.ZodOptional<z.ZodNumber>;
80
+ frameWidth: z.ZodOptional<z.ZodNumber>;
81
+ frameHeight: z.ZodOptional<z.ZodNumber>;
82
+ framesDecoded: z.ZodOptional<z.ZodNumber>;
83
+ framesPerSecond: z.ZodOptional<z.ZodNumber>;
84
+ framesDropped: z.ZodOptional<z.ZodNumber>;
85
+ videoCodec: z.ZodOptional<z.ZodString>;
86
+ audioCodec: z.ZodOptional<z.ZodString>;
87
+ browserInfo: z.ZodOptional<z.ZodObject<{
88
+ userAgent: z.ZodOptional<z.ZodString>;
89
+ platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
+ language: z.ZodOptional<z.ZodString>;
91
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
92
+ userAgent: z.ZodOptional<z.ZodString>;
93
+ platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
+ language: z.ZodOptional<z.ZodString>;
95
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
96
+ userAgent: z.ZodOptional<z.ZodString>;
97
+ platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
+ language: z.ZodOptional<z.ZodString>;
99
+ }, z.ZodTypeAny, "passthrough">>>;
100
+ currentRTT: z.ZodOptional<z.ZodNumber>;
101
+ sessionRunTime: z.ZodOptional<z.ZodString>;
102
+ controlsStreamInput: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
103
+ videoEncoderAvgQP: z.ZodOptional<z.ZodNumber>;
104
+ videoBitrate: z.ZodOptional<z.ZodNumber>;
105
+ audioBitrate: z.ZodOptional<z.ZodNumber>;
106
+ }, z.ZodTypeAny, "passthrough">>;
107
+ }, "strip", z.ZodTypeAny, {
108
+ type?: "stats";
109
+ stats?: z.objectOutputType<{
110
+ codecs: z.ZodOptional<z.ZodType<Map<string, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5/dist/types/PeerConnectionController/CodecStats").CodecStats>, z.ZodTypeDef, Map<string, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5/dist/types/PeerConnectionController/CodecStats").CodecStats>>>;
111
+ candidatePair: z.ZodOptional<z.ZodType<import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidatePairStats[], z.ZodTypeDef, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidatePairStats[]>>;
112
+ localCandidates: z.ZodOptional<z.ZodType<import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[], z.ZodTypeDef, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[]>>;
113
+ remoteCandidates: z.ZodOptional<z.ZodType<import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[], z.ZodTypeDef, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[]>>;
114
+ DataChannelStats: z.ZodOptional<z.ZodType<import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").DataChannelStats, z.ZodTypeDef, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").DataChannelStats>>;
115
+ bytesReceived: z.ZodOptional<z.ZodNumber>;
116
+ packetsLost: z.ZodOptional<z.ZodNumber>;
117
+ frameWidth: z.ZodOptional<z.ZodNumber>;
118
+ frameHeight: z.ZodOptional<z.ZodNumber>;
119
+ framesDecoded: z.ZodOptional<z.ZodNumber>;
120
+ framesPerSecond: z.ZodOptional<z.ZodNumber>;
121
+ framesDropped: z.ZodOptional<z.ZodNumber>;
122
+ videoCodec: z.ZodOptional<z.ZodString>;
123
+ audioCodec: z.ZodOptional<z.ZodString>;
124
+ browserInfo: z.ZodOptional<z.ZodObject<{
125
+ userAgent: z.ZodOptional<z.ZodString>;
126
+ platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
127
+ language: z.ZodOptional<z.ZodString>;
128
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
129
+ userAgent: z.ZodOptional<z.ZodString>;
130
+ platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
+ language: z.ZodOptional<z.ZodString>;
132
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
133
+ userAgent: z.ZodOptional<z.ZodString>;
134
+ platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
135
+ language: z.ZodOptional<z.ZodString>;
136
+ }, z.ZodTypeAny, "passthrough">>>;
137
+ currentRTT: z.ZodOptional<z.ZodNumber>;
138
+ sessionRunTime: z.ZodOptional<z.ZodString>;
139
+ controlsStreamInput: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
140
+ videoEncoderAvgQP: z.ZodOptional<z.ZodNumber>;
141
+ videoBitrate: z.ZodOptional<z.ZodNumber>;
142
+ audioBitrate: z.ZodOptional<z.ZodNumber>;
143
+ }, z.ZodTypeAny, "passthrough">;
144
+ }, {
145
+ type?: "stats";
146
+ stats?: z.objectInputType<{
147
+ codecs: z.ZodOptional<z.ZodType<Map<string, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5/dist/types/PeerConnectionController/CodecStats").CodecStats>, z.ZodTypeDef, Map<string, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5/dist/types/PeerConnectionController/CodecStats").CodecStats>>>;
148
+ candidatePair: z.ZodOptional<z.ZodType<import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidatePairStats[], z.ZodTypeDef, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidatePairStats[]>>;
149
+ localCandidates: z.ZodOptional<z.ZodType<import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[], z.ZodTypeDef, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[]>>;
150
+ remoteCandidates: z.ZodOptional<z.ZodType<import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[], z.ZodTypeDef, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[]>>;
151
+ DataChannelStats: z.ZodOptional<z.ZodType<import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").DataChannelStats, z.ZodTypeDef, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").DataChannelStats>>;
152
+ bytesReceived: z.ZodOptional<z.ZodNumber>;
153
+ packetsLost: z.ZodOptional<z.ZodNumber>;
154
+ frameWidth: z.ZodOptional<z.ZodNumber>;
155
+ frameHeight: z.ZodOptional<z.ZodNumber>;
156
+ framesDecoded: z.ZodOptional<z.ZodNumber>;
157
+ framesPerSecond: z.ZodOptional<z.ZodNumber>;
158
+ framesDropped: z.ZodOptional<z.ZodNumber>;
159
+ videoCodec: z.ZodOptional<z.ZodString>;
160
+ audioCodec: z.ZodOptional<z.ZodString>;
161
+ browserInfo: z.ZodOptional<z.ZodObject<{
162
+ userAgent: z.ZodOptional<z.ZodString>;
163
+ platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
164
+ language: z.ZodOptional<z.ZodString>;
165
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
166
+ userAgent: z.ZodOptional<z.ZodString>;
167
+ platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
168
+ language: z.ZodOptional<z.ZodString>;
169
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
170
+ userAgent: z.ZodOptional<z.ZodString>;
171
+ platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
172
+ language: z.ZodOptional<z.ZodString>;
173
+ }, z.ZodTypeAny, "passthrough">>>;
174
+ currentRTT: z.ZodOptional<z.ZodNumber>;
175
+ sessionRunTime: z.ZodOptional<z.ZodString>;
176
+ controlsStreamInput: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
177
+ videoEncoderAvgQP: z.ZodOptional<z.ZodNumber>;
178
+ videoBitrate: z.ZodOptional<z.ZodNumber>;
179
+ audioBitrate: z.ZodOptional<z.ZodNumber>;
180
+ }, z.ZodTypeAny, "passthrough">;
181
+ }>;
182
+ export type Stats = z.infer<typeof ZStats>;