@arcware-cloud/pixelstreaming-websdk 1.2.17 → 1.2.18
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.
- package/README.md +9 -0
- package/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/index.umd.js +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +3 -0
- package/types/lib/ApplyUrlHack.d.ts +2 -0
- package/types/lib/ArcwareApplication.d.ts +48 -0
- package/types/lib/ArcwareConfig.d.ts +35 -0
- package/types/lib/ArcwareInit.d.ts +15 -0
- package/types/lib/ArcwarePixelStreaming.d.ts +98 -0
- package/types/lib/DiagnosticsCollector.d.ts +181 -0
- package/types/lib/MessageTypes.d.ts +4 -0
- package/types/lib/domain/ArcwareSettingsSchema.d.ts +209 -0
- package/types/lib/domain/ConnectionIdentifier.d.ts +27 -0
- package/types/lib/domain/EventHandler.d.ts +11 -0
- package/types/lib/domain/Session.d.ts +29 -0
- package/types/lib/domain/Stats.d.ts +36 -0
- package/types/lib/domain/debounce.d.ts +1 -0
- package/types/lib/index.d.ts +6 -0
- package/types/lib/styles/ArcwarePixelStreamingApplicationStyles.d.ts +478 -0
- package/types/lib/ui/ArcwareLogoLoader/index.d.ts +6 -0
- package/types/lib/ui/AudioButton/AudioIcon.d.ts +7 -0
- package/types/lib/ui/AudioButton/index.d.ts +15 -0
- package/types/lib/ui/LoveLetters/index.d.ts +6 -0
- package/types/lib/ui/MicButton/index.d.ts +14 -0
- package/types/lib/ui/MicIcon/index.d.ts +7 -0
- package/types/lib/ui/MicrophoneOverlay/index.d.ts +11 -0
- package/types/lib/ui/PlayIcon/index.d.ts +5 -0
- package/types/lib/ui/StopButton/index.d.ts +16 -0
- package/types/lib/ui/StopIcon/index.d.ts +5 -0
- package/types/shared/index.d.ts +1 -0
- package/types/shared/lib/Messages/ErrorMessage.d.ts +18 -0
- package/types/shared/lib/Messages/LoveLetter.d.ts +18 -0
- package/types/shared/lib/Messages/Ping.d.ts +15 -0
- package/types/shared/lib/Messages/Queue.d.ts +58 -0
- package/types/shared/lib/Messages/SessionId.d.ts +12 -0
- package/types/shared/lib/Messages/Stats.d.ts +182 -0
- package/types/shared/lib/Messages/StreamInfo.d.ts +338 -0
- package/types/shared/lib/Messages/Version.d.ts +12 -0
- package/types/shared/lib/Messages/WebSdkSettings.d.ts +96 -0
- package/types/shared/lib/Messages/index.d.ts +192 -0
- package/types/shared/lib/index.d.ts +1 -0
- package/.npmiognore +0 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ArcwarePixelStreaming } from "../ArcwarePixelStreaming";
|
|
2
|
+
export declare enum WebsocketState {
|
|
3
|
+
CONNECTING = 0,
|
|
4
|
+
OPEN = 1,
|
|
5
|
+
CLOSING = 2,
|
|
6
|
+
CLOSED = 3
|
|
7
|
+
}
|
|
8
|
+
export declare class ConnectionIdentifier {
|
|
9
|
+
private static instance;
|
|
10
|
+
static get Instance(): ConnectionIdentifier;
|
|
11
|
+
private interval;
|
|
12
|
+
private aps;
|
|
13
|
+
get WebsocketStates(): WebsocketState[];
|
|
14
|
+
private constructor();
|
|
15
|
+
register(ps: ArcwarePixelStreaming): void;
|
|
16
|
+
GetWebSocketStates(): WebsocketState[];
|
|
17
|
+
ActiveInstances(): number;
|
|
18
|
+
private enabled;
|
|
19
|
+
disable(): void;
|
|
20
|
+
/**
|
|
21
|
+
* The purpose of this method is to periodically tell the developer the amount of connected instances.
|
|
22
|
+
* This way the developer can figure out, when they messed up the implementation and there's shadow instances still running.
|
|
23
|
+
* Or when they accidentally set up multiple connections!
|
|
24
|
+
* Things like that can happen, for example if the React.useEffect was not setup perfectly!
|
|
25
|
+
*/
|
|
26
|
+
private connectionWatcher;
|
|
27
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** A helper class to spread the event to additional event handlers added from external sources. */
|
|
2
|
+
export declare class EventHandler<Type> {
|
|
3
|
+
private callbacks;
|
|
4
|
+
/** Returns the added callback on success or null, if something went wrong. */
|
|
5
|
+
add<Callback extends (arg: Type) => void>(callback: Callback): Callback | null;
|
|
6
|
+
/** Returns true if the input callback has been found and removed and false if not. */
|
|
7
|
+
remove<Callback extends (arg: Type) => void>(callback: Callback): boolean;
|
|
8
|
+
constructor();
|
|
9
|
+
/** Emits the event-data for each of the existing handlers. */
|
|
10
|
+
static Emit<Type>(handler: EventHandler<Type>, event: Type): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const ZOptions: z.ZodObject<{
|
|
3
|
+
localStorageKey: z.ZodDefault<z.ZodString>;
|
|
4
|
+
keepSession: z.ZodDefault<z.ZodNumber>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
localStorageKey?: string;
|
|
7
|
+
keepSession?: number;
|
|
8
|
+
}, {
|
|
9
|
+
localStorageKey?: string;
|
|
10
|
+
keepSession?: number;
|
|
11
|
+
}>;
|
|
12
|
+
type Options = z.infer<typeof ZOptions>;
|
|
13
|
+
/** The sessionId is stored in the localStorage to allow for reconnection and
|
|
14
|
+
* to prevent spamming start requests of instances, when smashing F5.
|
|
15
|
+
*/
|
|
16
|
+
export declare class Session {
|
|
17
|
+
private _current?;
|
|
18
|
+
get current(): string;
|
|
19
|
+
get noSession(): boolean;
|
|
20
|
+
get id(): string | null;
|
|
21
|
+
private options;
|
|
22
|
+
private get localStorageKey();
|
|
23
|
+
constructor(options?: Options);
|
|
24
|
+
/** Set's the session with creation date for the given storage key to the localStorage. */
|
|
25
|
+
set(sessionId: string): void;
|
|
26
|
+
/** Removes a session from the localStorage. */
|
|
27
|
+
unset(): void;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { AggregatedStats, CandidatePairStats } from "@epicgames-ps/lib-pixelstreamingfrontend-ue5.5";
|
|
2
|
+
export declare function Stats(stats: AggregatedStats): import("zod").objectOutputType<{
|
|
3
|
+
codecs: import("zod").ZodOptional<import("zod").ZodType<Map<string, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5/dist/types/PeerConnectionController/CodecStats").CodecStats>, import("zod").ZodTypeDef, Map<string, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5/dist/types/PeerConnectionController/CodecStats").CodecStats>>>;
|
|
4
|
+
candidatePair: import("zod").ZodOptional<import("zod").ZodType<CandidatePairStats[], import("zod").ZodTypeDef, CandidatePairStats[]>>;
|
|
5
|
+
localCandidates: import("zod").ZodOptional<import("zod").ZodType<import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[], import("zod").ZodTypeDef, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[]>>;
|
|
6
|
+
remoteCandidates: import("zod").ZodOptional<import("zod").ZodType<import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[], import("zod").ZodTypeDef, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[]>>;
|
|
7
|
+
DataChannelStats: import("zod").ZodOptional<import("zod").ZodType<import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").DataChannelStats, import("zod").ZodTypeDef, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").DataChannelStats>>;
|
|
8
|
+
bytesReceived: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
9
|
+
packetsLost: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
10
|
+
frameWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
11
|
+
frameHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
12
|
+
framesDecoded: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
13
|
+
framesPerSecond: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
14
|
+
framesDropped: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
15
|
+
videoCodec: import("zod").ZodOptional<import("zod").ZodString>;
|
|
16
|
+
audioCodec: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17
|
+
browserInfo: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
18
|
+
userAgent: import("zod").ZodOptional<import("zod").ZodString>;
|
|
19
|
+
platform: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
20
|
+
language: import("zod").ZodOptional<import("zod").ZodString>;
|
|
21
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
22
|
+
userAgent: import("zod").ZodOptional<import("zod").ZodString>;
|
|
23
|
+
platform: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
24
|
+
language: import("zod").ZodOptional<import("zod").ZodString>;
|
|
25
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
26
|
+
userAgent: import("zod").ZodOptional<import("zod").ZodString>;
|
|
27
|
+
platform: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
28
|
+
language: import("zod").ZodOptional<import("zod").ZodString>;
|
|
29
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
30
|
+
currentRTT: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
31
|
+
sessionRunTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
32
|
+
controlsStreamInput: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
|
|
33
|
+
videoEncoderAvgQP: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
34
|
+
videoBitrate: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
35
|
+
audioBitrate: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
36
|
+
}, import("zod").ZodTypeAny, "passthrough">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function debounce<T extends (...args: any[]) => void>(func: T, wait: number): (...args: Parameters<T>) => void;
|
|
@@ -0,0 +1,478 @@
|
|
|
1
|
+
export declare const ArcwareStyles: {
|
|
2
|
+
customStyles: {
|
|
3
|
+
":root": {
|
|
4
|
+
"--color0": string;
|
|
5
|
+
"--color1": string;
|
|
6
|
+
"--color2": string;
|
|
7
|
+
"--color3": string;
|
|
8
|
+
"--color4": string;
|
|
9
|
+
"--color5": string;
|
|
10
|
+
"--color6": string;
|
|
11
|
+
"--color7": string;
|
|
12
|
+
"--color8": string;
|
|
13
|
+
"--color9": string;
|
|
14
|
+
"--color10": string;
|
|
15
|
+
"--color11": string;
|
|
16
|
+
"--color12": string;
|
|
17
|
+
"--color13": string;
|
|
18
|
+
"--colorBoxShadow": string;
|
|
19
|
+
};
|
|
20
|
+
"#playerUI *": {
|
|
21
|
+
fontFamily: string;
|
|
22
|
+
};
|
|
23
|
+
"#shared-stream-container": {
|
|
24
|
+
boxSizing: string;
|
|
25
|
+
};
|
|
26
|
+
"#shared-stream-container::-webkit-scrollbar": {
|
|
27
|
+
width: string;
|
|
28
|
+
};
|
|
29
|
+
"#shared-stream-container::-webkit-scrollbar-track": {
|
|
30
|
+
background: string;
|
|
31
|
+
opacity: string;
|
|
32
|
+
borderRadius: string;
|
|
33
|
+
borderTop: string;
|
|
34
|
+
borderRight: string;
|
|
35
|
+
borderBottom: string;
|
|
36
|
+
borderLeft: string;
|
|
37
|
+
};
|
|
38
|
+
"#shared-stream-container::-webkit-scrollbar-track-piece": {
|
|
39
|
+
background: string;
|
|
40
|
+
};
|
|
41
|
+
"#shared-stream-container::-webkit-scrollbar-thumb": {
|
|
42
|
+
background: string;
|
|
43
|
+
width: string;
|
|
44
|
+
borderRight: string;
|
|
45
|
+
borderLeft: string;
|
|
46
|
+
transition: string;
|
|
47
|
+
borderRadius: string;
|
|
48
|
+
};
|
|
49
|
+
"#shared-stream-container::-webkit-scrollbar-thumb:hover": {
|
|
50
|
+
transition: string;
|
|
51
|
+
background: string;
|
|
52
|
+
};
|
|
53
|
+
"#playerUI, #videoElementParent": {
|
|
54
|
+
position: string;
|
|
55
|
+
width: string;
|
|
56
|
+
height: string;
|
|
57
|
+
maxWidth: string;
|
|
58
|
+
maxHeight: string;
|
|
59
|
+
top: number;
|
|
60
|
+
right: number;
|
|
61
|
+
bottom: number;
|
|
62
|
+
left: number;
|
|
63
|
+
margin: string;
|
|
64
|
+
boxSizing: string;
|
|
65
|
+
pointerEvents: string;
|
|
66
|
+
};
|
|
67
|
+
"#streamingVideo": {
|
|
68
|
+
maxWidth: string;
|
|
69
|
+
maxHeight: string;
|
|
70
|
+
boxSizing: string;
|
|
71
|
+
background: string;
|
|
72
|
+
};
|
|
73
|
+
"#uiFeatures #controls": {
|
|
74
|
+
top: string;
|
|
75
|
+
left: string;
|
|
76
|
+
bottom: string;
|
|
77
|
+
right: string;
|
|
78
|
+
display: string;
|
|
79
|
+
flexDirection: string;
|
|
80
|
+
};
|
|
81
|
+
"#uiFeatures #connection": {
|
|
82
|
+
bottom: string;
|
|
83
|
+
left: string;
|
|
84
|
+
width: string;
|
|
85
|
+
heihgt: string;
|
|
86
|
+
};
|
|
87
|
+
"#uiFeatures button": {
|
|
88
|
+
backgroundColor: string;
|
|
89
|
+
border: string;
|
|
90
|
+
position: string;
|
|
91
|
+
width: string;
|
|
92
|
+
height: string;
|
|
93
|
+
padding: string;
|
|
94
|
+
textAlign: string;
|
|
95
|
+
cursor: string;
|
|
96
|
+
display: string;
|
|
97
|
+
flexDirection: string;
|
|
98
|
+
justifyContent: string;
|
|
99
|
+
alignItems: string;
|
|
100
|
+
boxShadow: string;
|
|
101
|
+
borderRadius: string;
|
|
102
|
+
outline: string;
|
|
103
|
+
};
|
|
104
|
+
"#uiFeatures button:hover, #uiFeatures button:active": {
|
|
105
|
+
padding: string;
|
|
106
|
+
border: string;
|
|
107
|
+
};
|
|
108
|
+
"#uiFeatures button #audioIconMuted, #uiFeatures button #audioIconUnmuted, #uiFeatures button #micIconMuted, #uiFeatures button #micIconUnmuted": {
|
|
109
|
+
width: string;
|
|
110
|
+
height: string;
|
|
111
|
+
};
|
|
112
|
+
"#uiFeatures button #maximizeIcon, #uiFeatures button #minimizeIcon": {
|
|
113
|
+
width: string;
|
|
114
|
+
height: string;
|
|
115
|
+
};
|
|
116
|
+
"#stopIcon, #playIcon": {
|
|
117
|
+
width: string;
|
|
118
|
+
height: string;
|
|
119
|
+
};
|
|
120
|
+
"#uiFeatures button .tooltiptext": {
|
|
121
|
+
right: string;
|
|
122
|
+
left: string;
|
|
123
|
+
boxShadow: string;
|
|
124
|
+
borderRadius: string;
|
|
125
|
+
backgroundColor: string;
|
|
126
|
+
width: string;
|
|
127
|
+
visibility: string;
|
|
128
|
+
};
|
|
129
|
+
"@media (hover: hover) and (pointer: fine)": {
|
|
130
|
+
"#uiFeatures button:hover .tooltiptext": {
|
|
131
|
+
visibility: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
"#controls>*": {
|
|
135
|
+
marginBottom: string;
|
|
136
|
+
display: string;
|
|
137
|
+
lineHeight: string;
|
|
138
|
+
padding: string;
|
|
139
|
+
backgroundColor: string;
|
|
140
|
+
};
|
|
141
|
+
"#uiFeatures #settingsIcon, #uiFeatures #statsIcon": {
|
|
142
|
+
width: string;
|
|
143
|
+
height: string;
|
|
144
|
+
};
|
|
145
|
+
".svgIcon": {
|
|
146
|
+
fill: string;
|
|
147
|
+
};
|
|
148
|
+
"#uiFeatures button:hover .svgIcon, #uiFeatures button:active .svgIcon": {
|
|
149
|
+
fill: string;
|
|
150
|
+
};
|
|
151
|
+
".tgl-switch .tgl-slider, .tgl-flat:checked+.tgl-slider": {
|
|
152
|
+
border: string;
|
|
153
|
+
};
|
|
154
|
+
".tgl-switch .tgl-slider": {
|
|
155
|
+
background: string;
|
|
156
|
+
};
|
|
157
|
+
".tgl-switch .tgl-slider::before": {
|
|
158
|
+
content: string;
|
|
159
|
+
display: string;
|
|
160
|
+
background: string;
|
|
161
|
+
position: string;
|
|
162
|
+
height: string;
|
|
163
|
+
width: string;
|
|
164
|
+
borderRadius: string;
|
|
165
|
+
margin: string;
|
|
166
|
+
top: string;
|
|
167
|
+
bottom: string;
|
|
168
|
+
left: string;
|
|
169
|
+
right: string;
|
|
170
|
+
};
|
|
171
|
+
".tgl-switch .tgl-slider::after": {
|
|
172
|
+
height: string;
|
|
173
|
+
width: string;
|
|
174
|
+
borderRadius: string;
|
|
175
|
+
top: string;
|
|
176
|
+
left: string;
|
|
177
|
+
};
|
|
178
|
+
".tgl-flat:checked+.tgl-slider:after": {
|
|
179
|
+
left: string;
|
|
180
|
+
background: string;
|
|
181
|
+
};
|
|
182
|
+
".form-control": {
|
|
183
|
+
backgroundColor: string;
|
|
184
|
+
border: string;
|
|
185
|
+
borderRadius: string;
|
|
186
|
+
color: string;
|
|
187
|
+
textAlign: string;
|
|
188
|
+
fontFamily: string;
|
|
189
|
+
padding: string;
|
|
190
|
+
};
|
|
191
|
+
".btn-flat": {
|
|
192
|
+
background: string;
|
|
193
|
+
color: string;
|
|
194
|
+
border: string;
|
|
195
|
+
padding: string;
|
|
196
|
+
cursor: string;
|
|
197
|
+
borderRadius: string;
|
|
198
|
+
textTransform: string;
|
|
199
|
+
minWidth: string;
|
|
200
|
+
};
|
|
201
|
+
".btn-flat:disabled": {
|
|
202
|
+
background: string;
|
|
203
|
+
borderColor: string;
|
|
204
|
+
color: string;
|
|
205
|
+
cursor: string;
|
|
206
|
+
};
|
|
207
|
+
".btn-flat:focus": {
|
|
208
|
+
outline: string;
|
|
209
|
+
};
|
|
210
|
+
".arcware-logo-loader": {
|
|
211
|
+
position: string;
|
|
212
|
+
display: string;
|
|
213
|
+
width: string;
|
|
214
|
+
height: string;
|
|
215
|
+
};
|
|
216
|
+
"#playOverlay img#playButton": {
|
|
217
|
+
width: string;
|
|
218
|
+
};
|
|
219
|
+
"#disconnectOverlay, #errorOverlay": {
|
|
220
|
+
textTransform: string;
|
|
221
|
+
textAlign: string;
|
|
222
|
+
fontSize: string;
|
|
223
|
+
lineHeight: number;
|
|
224
|
+
};
|
|
225
|
+
"#disconnectOverlay .clickableState": {
|
|
226
|
+
textTransform: string;
|
|
227
|
+
textAlign: string;
|
|
228
|
+
color: string;
|
|
229
|
+
padding: string;
|
|
230
|
+
fontSize: string;
|
|
231
|
+
border: string;
|
|
232
|
+
margin: string;
|
|
233
|
+
width: string;
|
|
234
|
+
};
|
|
235
|
+
"#afkOverlay": {
|
|
236
|
+
background: string;
|
|
237
|
+
transition: string;
|
|
238
|
+
opacity: number;
|
|
239
|
+
pointerEvents: string;
|
|
240
|
+
};
|
|
241
|
+
"#afkOverlayInner": {
|
|
242
|
+
textTransform: string;
|
|
243
|
+
background: string;
|
|
244
|
+
padding: string;
|
|
245
|
+
fontSize: string;
|
|
246
|
+
width: string;
|
|
247
|
+
textAlign: string;
|
|
248
|
+
lineHeight: number;
|
|
249
|
+
};
|
|
250
|
+
"#afkOverlayInner center::first-line": {
|
|
251
|
+
textTransform: string;
|
|
252
|
+
color: string;
|
|
253
|
+
fontWeight: string;
|
|
254
|
+
fontSize: string;
|
|
255
|
+
};
|
|
256
|
+
"#afkOverlayInner #afkCountDownNumber": {
|
|
257
|
+
color: string;
|
|
258
|
+
fontSize: string;
|
|
259
|
+
lineHeight: string;
|
|
260
|
+
};
|
|
261
|
+
"#afkOverlayInner center .retry-button": {
|
|
262
|
+
textTransform: string;
|
|
263
|
+
textAlign: string;
|
|
264
|
+
color: string;
|
|
265
|
+
padding: string;
|
|
266
|
+
fontSize: string;
|
|
267
|
+
border: string;
|
|
268
|
+
margin: string;
|
|
269
|
+
width: string;
|
|
270
|
+
};
|
|
271
|
+
"#connectOverlay #connectButton": {
|
|
272
|
+
textTransform: string;
|
|
273
|
+
textAlign: string;
|
|
274
|
+
color: string;
|
|
275
|
+
padding: string;
|
|
276
|
+
fontSize: string;
|
|
277
|
+
border: string;
|
|
278
|
+
margin: string;
|
|
279
|
+
width: string;
|
|
280
|
+
};
|
|
281
|
+
"#connectOverlay .connection-text": {
|
|
282
|
+
textTransform: string;
|
|
283
|
+
textAlign: string;
|
|
284
|
+
margin: string;
|
|
285
|
+
};
|
|
286
|
+
"#connectOverlay .connection-text .title": {
|
|
287
|
+
color: string;
|
|
288
|
+
fontSize: string;
|
|
289
|
+
margin: string;
|
|
290
|
+
};
|
|
291
|
+
"#connectOverlay .connection-text .subtitle": {
|
|
292
|
+
color: string;
|
|
293
|
+
opacity: number;
|
|
294
|
+
fontSize: string;
|
|
295
|
+
margin: string;
|
|
296
|
+
};
|
|
297
|
+
"#infoOverlay.hiddenState": {
|
|
298
|
+
display: string;
|
|
299
|
+
};
|
|
300
|
+
"#disconnectOverlay, #playOverlay, #errorOverlay, #microphoneOverlay, #connectOverlay": {
|
|
301
|
+
background: string;
|
|
302
|
+
display: string;
|
|
303
|
+
transition: string;
|
|
304
|
+
opacity: number;
|
|
305
|
+
pointerEvents: string;
|
|
306
|
+
};
|
|
307
|
+
"#microphoneOverlay": {
|
|
308
|
+
textTransform: string;
|
|
309
|
+
padding: string;
|
|
310
|
+
fontSize: string;
|
|
311
|
+
height: string;
|
|
312
|
+
width: string;
|
|
313
|
+
textAlign: string;
|
|
314
|
+
lineHeight: number;
|
|
315
|
+
position: string;
|
|
316
|
+
margin: string;
|
|
317
|
+
top: string;
|
|
318
|
+
bottom: string;
|
|
319
|
+
left: string;
|
|
320
|
+
right: string;
|
|
321
|
+
justifyContent: string;
|
|
322
|
+
alignItems: string;
|
|
323
|
+
flexDirection: string;
|
|
324
|
+
zIndex: number;
|
|
325
|
+
};
|
|
326
|
+
"#microphoneOverlay .title": {
|
|
327
|
+
fontSize: string;
|
|
328
|
+
position: string;
|
|
329
|
+
marginBottom: string;
|
|
330
|
+
color: string;
|
|
331
|
+
};
|
|
332
|
+
"#microphoneOverlay .title:after": {
|
|
333
|
+
content: string;
|
|
334
|
+
display: string;
|
|
335
|
+
animation: string;
|
|
336
|
+
position: string;
|
|
337
|
+
};
|
|
338
|
+
"#microphoneOverlay p": {
|
|
339
|
+
margin: number;
|
|
340
|
+
color: string;
|
|
341
|
+
};
|
|
342
|
+
"#microphoneOverlay svg": {
|
|
343
|
+
height: string;
|
|
344
|
+
marginBottom: string;
|
|
345
|
+
marginTop: string;
|
|
346
|
+
};
|
|
347
|
+
"#microphoneOverlay .svgIcon": {
|
|
348
|
+
fill: string;
|
|
349
|
+
};
|
|
350
|
+
"#disconnectOverlay.hiddenState, #playOverlay.hiddenState, #errorOverlay.hiddenState, #afkOverlay.hiddenState, #microphoneOverlay.hiddenState": {
|
|
351
|
+
opacity: number;
|
|
352
|
+
pointerEvents: string;
|
|
353
|
+
};
|
|
354
|
+
"#disconnectOverlay.mic-overlay-is-visible, #errorOverlay.mic-overlay-is-visible, #infoOverlay.mic-overlay-is-visible": {
|
|
355
|
+
opacity: number;
|
|
356
|
+
pointerEvents: string;
|
|
357
|
+
};
|
|
358
|
+
"#infoOverlay.hiddenState, #connectOverlay.hiddenState": {
|
|
359
|
+
display: string;
|
|
360
|
+
};
|
|
361
|
+
"#connectOverlay": {
|
|
362
|
+
display: string;
|
|
363
|
+
flexDirection: string;
|
|
364
|
+
alignItems: string;
|
|
365
|
+
justifyContent: string;
|
|
366
|
+
};
|
|
367
|
+
"#infoOverlay": {
|
|
368
|
+
display: string;
|
|
369
|
+
};
|
|
370
|
+
".love-letters-box-root": {
|
|
371
|
+
display: string;
|
|
372
|
+
position: string;
|
|
373
|
+
width: string;
|
|
374
|
+
height: string;
|
|
375
|
+
color: string;
|
|
376
|
+
justifyContent: string;
|
|
377
|
+
alignItems: string;
|
|
378
|
+
flexDirection: string;
|
|
379
|
+
background: string;
|
|
380
|
+
zIndex: number;
|
|
381
|
+
};
|
|
382
|
+
".love-letters-box-root.fade-out": {
|
|
383
|
+
opacity: number;
|
|
384
|
+
transition: string;
|
|
385
|
+
};
|
|
386
|
+
"#letters-block": {
|
|
387
|
+
position: string;
|
|
388
|
+
top: number;
|
|
389
|
+
left: number;
|
|
390
|
+
right: number;
|
|
391
|
+
bottom: number;
|
|
392
|
+
margin: string;
|
|
393
|
+
color: string;
|
|
394
|
+
zIndex: number;
|
|
395
|
+
display: string;
|
|
396
|
+
flexDirection: string;
|
|
397
|
+
justifyContent: string;
|
|
398
|
+
alignItems: string;
|
|
399
|
+
fontSize: string;
|
|
400
|
+
textTransform: string;
|
|
401
|
+
textAlign: string;
|
|
402
|
+
};
|
|
403
|
+
"#letters-wrapper": {
|
|
404
|
+
height: string;
|
|
405
|
+
overflow: string;
|
|
406
|
+
position: string;
|
|
407
|
+
display: string;
|
|
408
|
+
flexDirection: string;
|
|
409
|
+
alignItems: string;
|
|
410
|
+
justifyContent: string;
|
|
411
|
+
marginTop: string;
|
|
412
|
+
paddingBottom: string;
|
|
413
|
+
};
|
|
414
|
+
"#letters-wrapper p": {
|
|
415
|
+
textAlign: string;
|
|
416
|
+
lineHeight: number;
|
|
417
|
+
fontSize: string;
|
|
418
|
+
};
|
|
419
|
+
".letter-animation:nth-last-of-type(1)::after": {
|
|
420
|
+
display: string;
|
|
421
|
+
animation: string;
|
|
422
|
+
content: string;
|
|
423
|
+
position: string;
|
|
424
|
+
};
|
|
425
|
+
".letter-animation": {
|
|
426
|
+
transition: string;
|
|
427
|
+
transformOrigin: string;
|
|
428
|
+
margin: string;
|
|
429
|
+
};
|
|
430
|
+
".letter-animation-enter": {
|
|
431
|
+
animation: string;
|
|
432
|
+
};
|
|
433
|
+
".letter-animation-exit": {
|
|
434
|
+
opacity: number;
|
|
435
|
+
scale: number;
|
|
436
|
+
transition: string;
|
|
437
|
+
margin: number;
|
|
438
|
+
};
|
|
439
|
+
"@keyframes dotty": {
|
|
440
|
+
"0%": {
|
|
441
|
+
content: string;
|
|
442
|
+
};
|
|
443
|
+
"25%": {
|
|
444
|
+
content: string;
|
|
445
|
+
};
|
|
446
|
+
"50%": {
|
|
447
|
+
content: string;
|
|
448
|
+
};
|
|
449
|
+
"75%": {
|
|
450
|
+
content: string;
|
|
451
|
+
};
|
|
452
|
+
"100%": {
|
|
453
|
+
content: string;
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
"@keyframes fadeInUp": {
|
|
457
|
+
from: {
|
|
458
|
+
opacity: number;
|
|
459
|
+
transform: string;
|
|
460
|
+
scale: number;
|
|
461
|
+
};
|
|
462
|
+
to: {
|
|
463
|
+
opacity: number;
|
|
464
|
+
transform: string;
|
|
465
|
+
scale: number;
|
|
466
|
+
};
|
|
467
|
+
};
|
|
468
|
+
".hidden": {
|
|
469
|
+
display: string;
|
|
470
|
+
opacity: number;
|
|
471
|
+
};
|
|
472
|
+
".visible": {
|
|
473
|
+
display: string;
|
|
474
|
+
opacity: number;
|
|
475
|
+
transition: string;
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ArcwarePixelStreaming } from "../../ArcwarePixelStreaming";
|
|
2
|
+
export declare class AudioButton {
|
|
3
|
+
private button;
|
|
4
|
+
private stream;
|
|
5
|
+
private audioIcon;
|
|
6
|
+
private tooltipText;
|
|
7
|
+
constructor(stream: ArcwarePixelStreaming);
|
|
8
|
+
private setAudioMutedByDefault;
|
|
9
|
+
private createButton;
|
|
10
|
+
private createTooltipText;
|
|
11
|
+
private toggleAudio;
|
|
12
|
+
private updateAudioIcon;
|
|
13
|
+
get element(): HTMLButtonElement;
|
|
14
|
+
private onVolumeChange;
|
|
15
|
+
}
|
|
@@ -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,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
|
+
}
|