@arcware-cloud/pixelstreaming-websdk
Version:
WebSDK for easy implementation of pixel streaming with Arcware Cloud Services. Heavily based on the '@epicgames-ps' library.
183 lines (182 loc) • 13.9 kB
TypeScript
import { z } from "zod";
export declare const ZStats: z.ZodObject<{
type: z.ZodLiteral<"stats">;
stats: z.ZodObject<{
codecs: z.ZodOptional<z.ZodType<Map<string, import("-ps/lib-pixelstreamingfrontend-ue5.5/dist/types/PeerConnectionController/CodecStats").CodecStats>, z.ZodTypeDef, Map<string, import("-ps/lib-pixelstreamingfrontend-ue5.5/dist/types/PeerConnectionController/CodecStats").CodecStats>>>;
candidatePair: z.ZodOptional<z.ZodType<import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidatePairStats[], z.ZodTypeDef, import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidatePairStats[]>>;
localCandidates: z.ZodOptional<z.ZodType<import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[], z.ZodTypeDef, import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[]>>;
remoteCandidates: z.ZodOptional<z.ZodType<import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[], z.ZodTypeDef, import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[]>>;
DataChannelStats: z.ZodOptional<z.ZodType<import("-ps/lib-pixelstreamingfrontend-ue5.5").DataChannelStats, z.ZodTypeDef, import("-ps/lib-pixelstreamingfrontend-ue5.5").DataChannelStats>>;
bytesReceived: z.ZodOptional<z.ZodNumber>;
packetsLost: z.ZodOptional<z.ZodNumber>;
frameWidth: z.ZodOptional<z.ZodNumber>;
frameHeight: z.ZodOptional<z.ZodNumber>;
framesDecoded: z.ZodOptional<z.ZodNumber>;
framesPerSecond: z.ZodOptional<z.ZodNumber>;
framesDropped: z.ZodOptional<z.ZodNumber>;
videoCodec: z.ZodOptional<z.ZodString>;
audioCodec: z.ZodOptional<z.ZodString>;
browserInfo: z.ZodOptional<z.ZodObject<{
userAgent: z.ZodOptional<z.ZodString>;
platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
language: z.ZodOptional<z.ZodString>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
userAgent: z.ZodOptional<z.ZodString>;
platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
language: z.ZodOptional<z.ZodString>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
userAgent: z.ZodOptional<z.ZodString>;
platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
language: z.ZodOptional<z.ZodString>;
}, z.ZodTypeAny, "passthrough">>>;
currentRTT: z.ZodOptional<z.ZodNumber>;
sessionRunTime: z.ZodOptional<z.ZodString>;
controlsStreamInput: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
videoEncoderAvgQP: z.ZodOptional<z.ZodNumber>;
videoBitrate: z.ZodOptional<z.ZodNumber>;
audioBitrate: z.ZodOptional<z.ZodNumber>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
codecs: z.ZodOptional<z.ZodType<Map<string, import("-ps/lib-pixelstreamingfrontend-ue5.5/dist/types/PeerConnectionController/CodecStats").CodecStats>, z.ZodTypeDef, Map<string, import("-ps/lib-pixelstreamingfrontend-ue5.5/dist/types/PeerConnectionController/CodecStats").CodecStats>>>;
candidatePair: z.ZodOptional<z.ZodType<import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidatePairStats[], z.ZodTypeDef, import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidatePairStats[]>>;
localCandidates: z.ZodOptional<z.ZodType<import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[], z.ZodTypeDef, import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[]>>;
remoteCandidates: z.ZodOptional<z.ZodType<import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[], z.ZodTypeDef, import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[]>>;
DataChannelStats: z.ZodOptional<z.ZodType<import("-ps/lib-pixelstreamingfrontend-ue5.5").DataChannelStats, z.ZodTypeDef, import("-ps/lib-pixelstreamingfrontend-ue5.5").DataChannelStats>>;
bytesReceived: z.ZodOptional<z.ZodNumber>;
packetsLost: z.ZodOptional<z.ZodNumber>;
frameWidth: z.ZodOptional<z.ZodNumber>;
frameHeight: z.ZodOptional<z.ZodNumber>;
framesDecoded: z.ZodOptional<z.ZodNumber>;
framesPerSecond: z.ZodOptional<z.ZodNumber>;
framesDropped: z.ZodOptional<z.ZodNumber>;
videoCodec: z.ZodOptional<z.ZodString>;
audioCodec: z.ZodOptional<z.ZodString>;
browserInfo: z.ZodOptional<z.ZodObject<{
userAgent: z.ZodOptional<z.ZodString>;
platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
language: z.ZodOptional<z.ZodString>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
userAgent: z.ZodOptional<z.ZodString>;
platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
language: z.ZodOptional<z.ZodString>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
userAgent: z.ZodOptional<z.ZodString>;
platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
language: z.ZodOptional<z.ZodString>;
}, z.ZodTypeAny, "passthrough">>>;
currentRTT: z.ZodOptional<z.ZodNumber>;
sessionRunTime: z.ZodOptional<z.ZodString>;
controlsStreamInput: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
videoEncoderAvgQP: z.ZodOptional<z.ZodNumber>;
videoBitrate: z.ZodOptional<z.ZodNumber>;
audioBitrate: z.ZodOptional<z.ZodNumber>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
codecs: z.ZodOptional<z.ZodType<Map<string, import("-ps/lib-pixelstreamingfrontend-ue5.5/dist/types/PeerConnectionController/CodecStats").CodecStats>, z.ZodTypeDef, Map<string, import("-ps/lib-pixelstreamingfrontend-ue5.5/dist/types/PeerConnectionController/CodecStats").CodecStats>>>;
candidatePair: z.ZodOptional<z.ZodType<import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidatePairStats[], z.ZodTypeDef, import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidatePairStats[]>>;
localCandidates: z.ZodOptional<z.ZodType<import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[], z.ZodTypeDef, import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[]>>;
remoteCandidates: z.ZodOptional<z.ZodType<import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[], z.ZodTypeDef, import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[]>>;
DataChannelStats: z.ZodOptional<z.ZodType<import("-ps/lib-pixelstreamingfrontend-ue5.5").DataChannelStats, z.ZodTypeDef, import("-ps/lib-pixelstreamingfrontend-ue5.5").DataChannelStats>>;
bytesReceived: z.ZodOptional<z.ZodNumber>;
packetsLost: z.ZodOptional<z.ZodNumber>;
frameWidth: z.ZodOptional<z.ZodNumber>;
frameHeight: z.ZodOptional<z.ZodNumber>;
framesDecoded: z.ZodOptional<z.ZodNumber>;
framesPerSecond: z.ZodOptional<z.ZodNumber>;
framesDropped: z.ZodOptional<z.ZodNumber>;
videoCodec: z.ZodOptional<z.ZodString>;
audioCodec: z.ZodOptional<z.ZodString>;
browserInfo: z.ZodOptional<z.ZodObject<{
userAgent: z.ZodOptional<z.ZodString>;
platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
language: z.ZodOptional<z.ZodString>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
userAgent: z.ZodOptional<z.ZodString>;
platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
language: z.ZodOptional<z.ZodString>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
userAgent: z.ZodOptional<z.ZodString>;
platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
language: z.ZodOptional<z.ZodString>;
}, z.ZodTypeAny, "passthrough">>>;
currentRTT: z.ZodOptional<z.ZodNumber>;
sessionRunTime: z.ZodOptional<z.ZodString>;
controlsStreamInput: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
videoEncoderAvgQP: z.ZodOptional<z.ZodNumber>;
videoBitrate: z.ZodOptional<z.ZodNumber>;
audioBitrate: z.ZodOptional<z.ZodNumber>;
}, z.ZodTypeAny, "passthrough">>;
}, "strip", z.ZodTypeAny, {
type?: "stats";
stats?: z.objectOutputType<{
codecs: z.ZodOptional<z.ZodType<Map<string, import("-ps/lib-pixelstreamingfrontend-ue5.5/dist/types/PeerConnectionController/CodecStats").CodecStats>, z.ZodTypeDef, Map<string, import("-ps/lib-pixelstreamingfrontend-ue5.5/dist/types/PeerConnectionController/CodecStats").CodecStats>>>;
candidatePair: z.ZodOptional<z.ZodType<import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidatePairStats[], z.ZodTypeDef, import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidatePairStats[]>>;
localCandidates: z.ZodOptional<z.ZodType<import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[], z.ZodTypeDef, import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[]>>;
remoteCandidates: z.ZodOptional<z.ZodType<import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[], z.ZodTypeDef, import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[]>>;
DataChannelStats: z.ZodOptional<z.ZodType<import("-ps/lib-pixelstreamingfrontend-ue5.5").DataChannelStats, z.ZodTypeDef, import("-ps/lib-pixelstreamingfrontend-ue5.5").DataChannelStats>>;
bytesReceived: z.ZodOptional<z.ZodNumber>;
packetsLost: z.ZodOptional<z.ZodNumber>;
frameWidth: z.ZodOptional<z.ZodNumber>;
frameHeight: z.ZodOptional<z.ZodNumber>;
framesDecoded: z.ZodOptional<z.ZodNumber>;
framesPerSecond: z.ZodOptional<z.ZodNumber>;
framesDropped: z.ZodOptional<z.ZodNumber>;
videoCodec: z.ZodOptional<z.ZodString>;
audioCodec: z.ZodOptional<z.ZodString>;
browserInfo: z.ZodOptional<z.ZodObject<{
userAgent: z.ZodOptional<z.ZodString>;
platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
language: z.ZodOptional<z.ZodString>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
userAgent: z.ZodOptional<z.ZodString>;
platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
language: z.ZodOptional<z.ZodString>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
userAgent: z.ZodOptional<z.ZodString>;
platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
language: z.ZodOptional<z.ZodString>;
}, z.ZodTypeAny, "passthrough">>>;
currentRTT: z.ZodOptional<z.ZodNumber>;
sessionRunTime: z.ZodOptional<z.ZodString>;
controlsStreamInput: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
videoEncoderAvgQP: z.ZodOptional<z.ZodNumber>;
videoBitrate: z.ZodOptional<z.ZodNumber>;
audioBitrate: z.ZodOptional<z.ZodNumber>;
}, z.ZodTypeAny, "passthrough">;
}, {
type?: "stats";
stats?: z.objectInputType<{
codecs: z.ZodOptional<z.ZodType<Map<string, import("-ps/lib-pixelstreamingfrontend-ue5.5/dist/types/PeerConnectionController/CodecStats").CodecStats>, z.ZodTypeDef, Map<string, import("-ps/lib-pixelstreamingfrontend-ue5.5/dist/types/PeerConnectionController/CodecStats").CodecStats>>>;
candidatePair: z.ZodOptional<z.ZodType<import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidatePairStats[], z.ZodTypeDef, import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidatePairStats[]>>;
localCandidates: z.ZodOptional<z.ZodType<import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[], z.ZodTypeDef, import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[]>>;
remoteCandidates: z.ZodOptional<z.ZodType<import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[], z.ZodTypeDef, import("-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[]>>;
DataChannelStats: z.ZodOptional<z.ZodType<import("-ps/lib-pixelstreamingfrontend-ue5.5").DataChannelStats, z.ZodTypeDef, import("-ps/lib-pixelstreamingfrontend-ue5.5").DataChannelStats>>;
bytesReceived: z.ZodOptional<z.ZodNumber>;
packetsLost: z.ZodOptional<z.ZodNumber>;
frameWidth: z.ZodOptional<z.ZodNumber>;
frameHeight: z.ZodOptional<z.ZodNumber>;
framesDecoded: z.ZodOptional<z.ZodNumber>;
framesPerSecond: z.ZodOptional<z.ZodNumber>;
framesDropped: z.ZodOptional<z.ZodNumber>;
videoCodec: z.ZodOptional<z.ZodString>;
audioCodec: z.ZodOptional<z.ZodString>;
browserInfo: z.ZodOptional<z.ZodObject<{
userAgent: z.ZodOptional<z.ZodString>;
platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
language: z.ZodOptional<z.ZodString>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
userAgent: z.ZodOptional<z.ZodString>;
platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
language: z.ZodOptional<z.ZodString>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
userAgent: z.ZodOptional<z.ZodString>;
platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
language: z.ZodOptional<z.ZodString>;
}, z.ZodTypeAny, "passthrough">>>;
currentRTT: z.ZodOptional<z.ZodNumber>;
sessionRunTime: z.ZodOptional<z.ZodString>;
controlsStreamInput: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
videoEncoderAvgQP: z.ZodOptional<z.ZodNumber>;
videoBitrate: z.ZodOptional<z.ZodNumber>;
audioBitrate: z.ZodOptional<z.ZodNumber>;
}, z.ZodTypeAny, "passthrough">;
}>;
export type Stats = z.infer<typeof ZStats>;