googlevideo 2.0.0 → 3.0.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 (59) hide show
  1. package/LICENSE +9 -9
  2. package/README.md +79 -66
  3. package/dist/protos/generated/misc/common.d.ts +0 -15
  4. package/dist/protos/generated/misc/common.js +1 -134
  5. package/dist/protos/generated/video_streaming/buffered_range.d.ts +0 -15
  6. package/dist/protos/generated/video_streaming/buffered_range.js +1 -147
  7. package/dist/protos/generated/video_streaming/client_abr_state.d.ts +16 -38
  8. package/dist/protos/generated/video_streaming/client_abr_state.js +95 -319
  9. package/dist/protos/generated/video_streaming/crypto_params.d.ts +0 -17
  10. package/dist/protos/generated/video_streaming/crypto_params.js +1 -79
  11. package/dist/protos/generated/video_streaming/encrypted_player_request.d.ts +2 -19
  12. package/dist/protos/generated/video_streaming/encrypted_player_request.js +9 -106
  13. package/dist/protos/generated/video_streaming/format_initialization_metadata.d.ts +0 -15
  14. package/dist/protos/generated/video_streaming/format_initialization_metadata.js +1 -75
  15. package/dist/protos/generated/video_streaming/live_metadata.d.ts +17 -0
  16. package/dist/protos/generated/video_streaming/live_metadata.js +122 -0
  17. package/dist/protos/generated/video_streaming/media_capabilities.d.ts +0 -15
  18. package/dist/protos/generated/video_streaming/media_capabilities.js +1 -122
  19. package/dist/protos/generated/video_streaming/media_header.d.ts +0 -17
  20. package/dist/protos/generated/video_streaming/media_header.js +1 -128
  21. package/dist/protos/generated/video_streaming/next_request_policy.d.ts +0 -15
  22. package/dist/protos/generated/video_streaming/next_request_policy.js +1 -50
  23. package/dist/protos/generated/video_streaming/onesie_header.d.ts +0 -15
  24. package/dist/protos/generated/video_streaming/onesie_header.js +1 -123
  25. package/dist/protos/generated/video_streaming/onesie_header_type.d.ts +0 -2
  26. package/dist/protos/generated/video_streaming/onesie_header_type.js +1 -146
  27. package/dist/protos/generated/video_streaming/onesie_player_request.d.ts +1 -17
  28. package/dist/protos/generated/video_streaming/onesie_player_request.js +5 -50
  29. package/dist/protos/generated/video_streaming/onesie_player_response.d.ts +18 -16
  30. package/dist/protos/generated/video_streaming/onesie_player_response.js +19 -54
  31. package/dist/protos/generated/video_streaming/onesie_request.d.ts +2 -15
  32. package/dist/protos/generated/video_streaming/onesie_request.js +11 -84
  33. package/dist/protos/generated/video_streaming/playback_cookie.d.ts +0 -15
  34. package/dist/protos/generated/video_streaming/playback_cookie.js +1 -43
  35. package/dist/protos/generated/video_streaming/playback_start_policy.d.ts +0 -15
  36. package/dist/protos/generated/video_streaming/playback_start_policy.js +1 -66
  37. package/dist/protos/generated/video_streaming/proxy_status.d.ts +0 -2
  38. package/dist/protos/generated/video_streaming/proxy_status.js +1 -66
  39. package/dist/protos/generated/video_streaming/request_cancellation_policy.d.ts +0 -15
  40. package/dist/protos/generated/video_streaming/request_cancellation_policy.js +1 -66
  41. package/dist/protos/generated/video_streaming/sabr_error.d.ts +0 -15
  42. package/dist/protos/generated/video_streaming/sabr_error.js +1 -29
  43. package/dist/protos/generated/video_streaming/sabr_redirect.d.ts +0 -15
  44. package/dist/protos/generated/video_streaming/sabr_redirect.js +1 -22
  45. package/dist/protos/generated/video_streaming/stream_protection_status.d.ts +0 -15
  46. package/dist/protos/generated/video_streaming/stream_protection_status.js +1 -29
  47. package/dist/protos/generated/video_streaming/streamer_context.d.ts +0 -17
  48. package/dist/protos/generated/video_streaming/streamer_context.js +1 -351
  49. package/dist/protos/generated/video_streaming/time_range.d.ts +0 -15
  50. package/dist/protos/generated/video_streaming/time_range.js +1 -34
  51. package/dist/protos/generated/video_streaming/video_playback_abr_request.d.ts +1 -15
  52. package/dist/protos/generated/video_streaming/video_playback_abr_request.js +19 -257
  53. package/dist/src/core/ServerAbrStream.d.ts +1 -0
  54. package/dist/src/core/ServerAbrStream.js +34 -47
  55. package/dist/src/core/UMP.d.ts +25 -1
  56. package/dist/src/core/UMP.js +35 -19
  57. package/dist/src/utils/Protos.d.ts +3 -2
  58. package/dist/src/utils/Protos.js +3 -2
  59. package/package.json +59 -60
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.2.0
4
- // protoc v5.28.0
4
+ // protoc v3.21.12
5
5
  // source: video_streaming/playback_start_policy.proto
6
6
  /* eslint-disable */
7
7
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
@@ -46,41 +46,6 @@ export const PlaybackStartPolicy = {
46
46
  }
47
47
  return message;
48
48
  },
49
- fromJSON(object) {
50
- return {
51
- startMinReadaheadPolicy: isSet(object.startMinReadaheadPolicy)
52
- ? PlaybackStartPolicy_ReadaheadPolicy.fromJSON(object.startMinReadaheadPolicy)
53
- : undefined,
54
- resumeMinReadaheadPolicy: isSet(object.resumeMinReadaheadPolicy)
55
- ? PlaybackStartPolicy_ReadaheadPolicy.fromJSON(object.resumeMinReadaheadPolicy)
56
- : undefined,
57
- };
58
- },
59
- toJSON(message) {
60
- const obj = {};
61
- if (message.startMinReadaheadPolicy !== undefined) {
62
- obj.startMinReadaheadPolicy = PlaybackStartPolicy_ReadaheadPolicy.toJSON(message.startMinReadaheadPolicy);
63
- }
64
- if (message.resumeMinReadaheadPolicy !== undefined) {
65
- obj.resumeMinReadaheadPolicy = PlaybackStartPolicy_ReadaheadPolicy.toJSON(message.resumeMinReadaheadPolicy);
66
- }
67
- return obj;
68
- },
69
- create(base) {
70
- return PlaybackStartPolicy.fromPartial(base ?? {});
71
- },
72
- fromPartial(object) {
73
- const message = createBasePlaybackStartPolicy();
74
- message.startMinReadaheadPolicy =
75
- (object.startMinReadaheadPolicy !== undefined && object.startMinReadaheadPolicy !== null)
76
- ? PlaybackStartPolicy_ReadaheadPolicy.fromPartial(object.startMinReadaheadPolicy)
77
- : undefined;
78
- message.resumeMinReadaheadPolicy =
79
- (object.resumeMinReadaheadPolicy !== undefined && object.resumeMinReadaheadPolicy !== null)
80
- ? PlaybackStartPolicy_ReadaheadPolicy.fromPartial(object.resumeMinReadaheadPolicy)
81
- : undefined;
82
- return message;
83
- },
84
49
  };
85
50
  function createBasePlaybackStartPolicy_ReadaheadPolicy() {
86
51
  return { minReadaheadMs: 0, minBandwidthBytesPerSec: 0 };
@@ -122,34 +87,4 @@ export const PlaybackStartPolicy_ReadaheadPolicy = {
122
87
  }
123
88
  return message;
124
89
  },
125
- fromJSON(object) {
126
- return {
127
- minReadaheadMs: isSet(object.minReadaheadMs) ? globalThis.Number(object.minReadaheadMs) : 0,
128
- minBandwidthBytesPerSec: isSet(object.minBandwidthBytesPerSec)
129
- ? globalThis.Number(object.minBandwidthBytesPerSec)
130
- : 0,
131
- };
132
- },
133
- toJSON(message) {
134
- const obj = {};
135
- if (message.minReadaheadMs !== undefined && message.minReadaheadMs !== 0) {
136
- obj.minReadaheadMs = Math.round(message.minReadaheadMs);
137
- }
138
- if (message.minBandwidthBytesPerSec !== undefined && message.minBandwidthBytesPerSec !== 0) {
139
- obj.minBandwidthBytesPerSec = Math.round(message.minBandwidthBytesPerSec);
140
- }
141
- return obj;
142
- },
143
- create(base) {
144
- return PlaybackStartPolicy_ReadaheadPolicy.fromPartial(base ?? {});
145
- },
146
- fromPartial(object) {
147
- const message = createBasePlaybackStartPolicy_ReadaheadPolicy();
148
- message.minReadaheadMs = object.minReadaheadMs ?? 0;
149
- message.minBandwidthBytesPerSec = object.minBandwidthBytesPerSec ?? 0;
150
- return message;
151
- },
152
90
  };
153
- function isSet(value) {
154
- return value !== null && value !== undefined;
155
- }
@@ -12,5 +12,3 @@ export declare enum ProxyStatus {
12
12
  VAL_9 = 9,
13
13
  UNRECOGNIZED = -1
14
14
  }
15
- export declare function proxyStatusFromJSON(object: any): ProxyStatus;
16
- export declare function proxyStatusToJSON(object: ProxyStatus): string;
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.2.0
4
- // protoc v5.28.0
4
+ // protoc v3.21.12
5
5
  // source: video_streaming/proxy_status.proto
6
6
  /* eslint-disable */
7
7
  export const protobufPackage = "video_streaming";
@@ -19,68 +19,3 @@ export var ProxyStatus;
19
19
  ProxyStatus[ProxyStatus["VAL_9"] = 9] = "VAL_9";
20
20
  ProxyStatus[ProxyStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
21
21
  })(ProxyStatus || (ProxyStatus = {}));
22
- export function proxyStatusFromJSON(object) {
23
- switch (object) {
24
- case 0:
25
- case "VAL_0":
26
- return ProxyStatus.VAL_0;
27
- case 1:
28
- case "OK":
29
- return ProxyStatus.OK;
30
- case 2:
31
- case "VAL_2":
32
- return ProxyStatus.VAL_2;
33
- case 3:
34
- case "VAL_3":
35
- return ProxyStatus.VAL_3;
36
- case 4:
37
- case "VAL_4":
38
- return ProxyStatus.VAL_4;
39
- case 5:
40
- case "VAL_5":
41
- return ProxyStatus.VAL_5;
42
- case 6:
43
- case "VAL_6":
44
- return ProxyStatus.VAL_6;
45
- case 7:
46
- case "VAL_7":
47
- return ProxyStatus.VAL_7;
48
- case 8:
49
- case "VAL_8":
50
- return ProxyStatus.VAL_8;
51
- case 9:
52
- case "VAL_9":
53
- return ProxyStatus.VAL_9;
54
- case -1:
55
- case "UNRECOGNIZED":
56
- default:
57
- return ProxyStatus.UNRECOGNIZED;
58
- }
59
- }
60
- export function proxyStatusToJSON(object) {
61
- switch (object) {
62
- case ProxyStatus.VAL_0:
63
- return "VAL_0";
64
- case ProxyStatus.OK:
65
- return "OK";
66
- case ProxyStatus.VAL_2:
67
- return "VAL_2";
68
- case ProxyStatus.VAL_3:
69
- return "VAL_3";
70
- case ProxyStatus.VAL_4:
71
- return "VAL_4";
72
- case ProxyStatus.VAL_5:
73
- return "VAL_5";
74
- case ProxyStatus.VAL_6:
75
- return "VAL_6";
76
- case ProxyStatus.VAL_7:
77
- return "VAL_7";
78
- case ProxyStatus.VAL_8:
79
- return "VAL_8";
80
- case ProxyStatus.VAL_9:
81
- return "VAL_9";
82
- case ProxyStatus.UNRECOGNIZED:
83
- default:
84
- return "UNRECOGNIZED";
85
- }
86
- }
@@ -12,22 +12,7 @@ export interface RequestCancellationPolicy_Item {
12
12
  }
13
13
  export declare const RequestCancellationPolicy: MessageFns<RequestCancellationPolicy>;
14
14
  export declare const RequestCancellationPolicy_Item: MessageFns<RequestCancellationPolicy_Item>;
15
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
16
- export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
17
- [K in keyof T]?: DeepPartial<T[K]>;
18
- } : Partial<T>;
19
- type KeysOfUnion<T> = T extends T ? keyof T : never;
20
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
21
- [K in keyof P]: Exact<P[K], I[K]>;
22
- } & {
23
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
24
- };
25
15
  export interface MessageFns<T> {
26
16
  encode(message: T, writer?: BinaryWriter): BinaryWriter;
27
17
  decode(input: BinaryReader | Uint8Array, length?: number): T;
28
- fromJSON(object: any): T;
29
- toJSON(message: T): unknown;
30
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
31
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
32
18
  }
33
- export {};
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.2.0
4
- // protoc v5.28.0
4
+ // protoc v3.21.12
5
5
  // source: video_streaming/request_cancellation_policy.proto
6
6
  /* eslint-disable */
7
7
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
@@ -55,38 +55,6 @@ export const RequestCancellationPolicy = {
55
55
  }
56
56
  return message;
57
57
  },
58
- fromJSON(object) {
59
- return {
60
- N0: isSet(object.N0) ? globalThis.Number(object.N0) : 0,
61
- items: globalThis.Array.isArray(object?.items)
62
- ? object.items.map((e) => RequestCancellationPolicy_Item.fromJSON(e))
63
- : [],
64
- jq: isSet(object.jq) ? globalThis.Number(object.jq) : 0,
65
- };
66
- },
67
- toJSON(message) {
68
- const obj = {};
69
- if (message.N0 !== undefined && message.N0 !== 0) {
70
- obj.N0 = Math.round(message.N0);
71
- }
72
- if (message.items?.length) {
73
- obj.items = message.items.map((e) => RequestCancellationPolicy_Item.toJSON(e));
74
- }
75
- if (message.jq !== undefined && message.jq !== 0) {
76
- obj.jq = Math.round(message.jq);
77
- }
78
- return obj;
79
- },
80
- create(base) {
81
- return RequestCancellationPolicy.fromPartial(base ?? {});
82
- },
83
- fromPartial(object) {
84
- const message = createBaseRequestCancellationPolicy();
85
- message.N0 = object.N0 ?? 0;
86
- message.items = object.items?.map((e) => RequestCancellationPolicy_Item.fromPartial(e)) || [];
87
- message.jq = object.jq ?? 0;
88
- return message;
89
- },
90
58
  };
91
59
  function createBaseRequestCancellationPolicy_Item() {
92
60
  return { fR: 0, NK: 0, minReadaheadMs: 0 };
@@ -137,37 +105,4 @@ export const RequestCancellationPolicy_Item = {
137
105
  }
138
106
  return message;
139
107
  },
140
- fromJSON(object) {
141
- return {
142
- fR: isSet(object.fR) ? globalThis.Number(object.fR) : 0,
143
- NK: isSet(object.NK) ? globalThis.Number(object.NK) : 0,
144
- minReadaheadMs: isSet(object.minReadaheadMs) ? globalThis.Number(object.minReadaheadMs) : 0,
145
- };
146
- },
147
- toJSON(message) {
148
- const obj = {};
149
- if (message.fR !== undefined && message.fR !== 0) {
150
- obj.fR = Math.round(message.fR);
151
- }
152
- if (message.NK !== undefined && message.NK !== 0) {
153
- obj.NK = Math.round(message.NK);
154
- }
155
- if (message.minReadaheadMs !== undefined && message.minReadaheadMs !== 0) {
156
- obj.minReadaheadMs = Math.round(message.minReadaheadMs);
157
- }
158
- return obj;
159
- },
160
- create(base) {
161
- return RequestCancellationPolicy_Item.fromPartial(base ?? {});
162
- },
163
- fromPartial(object) {
164
- const message = createBaseRequestCancellationPolicy_Item();
165
- message.fR = object.fR ?? 0;
166
- message.NK = object.NK ?? 0;
167
- message.minReadaheadMs = object.minReadaheadMs ?? 0;
168
- return message;
169
- },
170
108
  };
171
- function isSet(value) {
172
- return value !== null && value !== undefined;
173
- }
@@ -5,22 +5,7 @@ export interface SabrError {
5
5
  code?: number | undefined;
6
6
  }
7
7
  export declare const SabrError: MessageFns<SabrError>;
8
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
9
- export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
10
- [K in keyof T]?: DeepPartial<T[K]>;
11
- } : Partial<T>;
12
- type KeysOfUnion<T> = T extends T ? keyof T : never;
13
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
14
- [K in keyof P]: Exact<P[K], I[K]>;
15
- } & {
16
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
17
- };
18
8
  export interface MessageFns<T> {
19
9
  encode(message: T, writer?: BinaryWriter): BinaryWriter;
20
10
  decode(input: BinaryReader | Uint8Array, length?: number): T;
21
- fromJSON(object: any): T;
22
- toJSON(message: T): unknown;
23
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
24
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
25
11
  }
26
- export {};
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.2.0
4
- // protoc v5.28.0
4
+ // protoc v3.21.12
5
5
  // source: video_streaming/sabr_error.proto
6
6
  /* eslint-disable */
7
7
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
@@ -46,32 +46,4 @@ export const SabrError = {
46
46
  }
47
47
  return message;
48
48
  },
49
- fromJSON(object) {
50
- return {
51
- type: isSet(object.type) ? globalThis.String(object.type) : "",
52
- code: isSet(object.code) ? globalThis.Number(object.code) : 0,
53
- };
54
- },
55
- toJSON(message) {
56
- const obj = {};
57
- if (message.type !== undefined && message.type !== "") {
58
- obj.type = message.type;
59
- }
60
- if (message.code !== undefined && message.code !== 0) {
61
- obj.code = Math.round(message.code);
62
- }
63
- return obj;
64
- },
65
- create(base) {
66
- return SabrError.fromPartial(base ?? {});
67
- },
68
- fromPartial(object) {
69
- const message = createBaseSabrError();
70
- message.type = object.type ?? "";
71
- message.code = object.code ?? 0;
72
- return message;
73
- },
74
49
  };
75
- function isSet(value) {
76
- return value !== null && value !== undefined;
77
- }
@@ -4,22 +4,7 @@ export interface SabrRedirect {
4
4
  url?: string | undefined;
5
5
  }
6
6
  export declare const SabrRedirect: MessageFns<SabrRedirect>;
7
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
8
- export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
9
- [K in keyof T]?: DeepPartial<T[K]>;
10
- } : Partial<T>;
11
- type KeysOfUnion<T> = T extends T ? keyof T : never;
12
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
13
- [K in keyof P]: Exact<P[K], I[K]>;
14
- } & {
15
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
16
- };
17
7
  export interface MessageFns<T> {
18
8
  encode(message: T, writer?: BinaryWriter): BinaryWriter;
19
9
  decode(input: BinaryReader | Uint8Array, length?: number): T;
20
- fromJSON(object: any): T;
21
- toJSON(message: T): unknown;
22
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
23
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
24
10
  }
25
- export {};
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.2.0
4
- // protoc v5.28.0
4
+ // protoc v3.21.12
5
5
  // source: video_streaming/sabr_redirect.proto
6
6
  /* eslint-disable */
7
7
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
@@ -37,25 +37,4 @@ export const SabrRedirect = {
37
37
  }
38
38
  return message;
39
39
  },
40
- fromJSON(object) {
41
- return { url: isSet(object.url) ? globalThis.String(object.url) : "" };
42
- },
43
- toJSON(message) {
44
- const obj = {};
45
- if (message.url !== undefined && message.url !== "") {
46
- obj.url = message.url;
47
- }
48
- return obj;
49
- },
50
- create(base) {
51
- return SabrRedirect.fromPartial(base ?? {});
52
- },
53
- fromPartial(object) {
54
- const message = createBaseSabrRedirect();
55
- message.url = object.url ?? "";
56
- return message;
57
- },
58
40
  };
59
- function isSet(value) {
60
- return value !== null && value !== undefined;
61
- }
@@ -5,22 +5,7 @@ export interface StreamProtectionStatus {
5
5
  field2?: number | undefined;
6
6
  }
7
7
  export declare const StreamProtectionStatus: MessageFns<StreamProtectionStatus>;
8
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
9
- export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
10
- [K in keyof T]?: DeepPartial<T[K]>;
11
- } : Partial<T>;
12
- type KeysOfUnion<T> = T extends T ? keyof T : never;
13
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
14
- [K in keyof P]: Exact<P[K], I[K]>;
15
- } & {
16
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
17
- };
18
8
  export interface MessageFns<T> {
19
9
  encode(message: T, writer?: BinaryWriter): BinaryWriter;
20
10
  decode(input: BinaryReader | Uint8Array, length?: number): T;
21
- fromJSON(object: any): T;
22
- toJSON(message: T): unknown;
23
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
24
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
25
11
  }
26
- export {};
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.2.0
4
- // protoc v5.28.0
4
+ // protoc v3.21.12
5
5
  // source: video_streaming/stream_protection_status.proto
6
6
  /* eslint-disable */
7
7
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
@@ -46,32 +46,4 @@ export const StreamProtectionStatus = {
46
46
  }
47
47
  return message;
48
48
  },
49
- fromJSON(object) {
50
- return {
51
- status: isSet(object.status) ? globalThis.Number(object.status) : 0,
52
- field2: isSet(object.field2) ? globalThis.Number(object.field2) : 0,
53
- };
54
- },
55
- toJSON(message) {
56
- const obj = {};
57
- if (message.status !== undefined && message.status !== 0) {
58
- obj.status = Math.round(message.status);
59
- }
60
- if (message.field2 !== undefined && message.field2 !== 0) {
61
- obj.field2 = Math.round(message.field2);
62
- }
63
- return obj;
64
- },
65
- create(base) {
66
- return StreamProtectionStatus.fromPartial(base ?? {});
67
- },
68
- fromPartial(object) {
69
- const message = createBaseStreamProtectionStatus();
70
- message.status = object.status ?? 0;
71
- message.field2 = object.field2 ?? 0;
72
- return message;
73
- },
74
49
  };
75
- function isSet(value) {
76
- return value !== null && value !== undefined;
77
- }
@@ -16,8 +16,6 @@ export declare enum StreamerContext_ClientFormFactor {
16
16
  FORM_FACTOR_VAL2 = 2,
17
17
  UNRECOGNIZED = -1
18
18
  }
19
- export declare function streamerContext_ClientFormFactorFromJSON(object: any): StreamerContext_ClientFormFactor;
20
- export declare function streamerContext_ClientFormFactorToJSON(object: StreamerContext_ClientFormFactor): string;
21
19
  export interface StreamerContext_ClientInfo {
22
20
  deviceMake?: string | undefined;
23
21
  deviceModel?: string | undefined;
@@ -68,22 +66,7 @@ export declare const StreamerContext_GLDeviceInfo: MessageFns<StreamerContext_GL
68
66
  export declare const StreamerContext_Fqa: MessageFns<StreamerContext_Fqa>;
69
67
  export declare const StreamerContext_Gqa: MessageFns<StreamerContext_Gqa>;
70
68
  export declare const StreamerContext_Gqa_Hqa: MessageFns<StreamerContext_Gqa_Hqa>;
71
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
72
- export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
73
- [K in keyof T]?: DeepPartial<T[K]>;
74
- } : Partial<T>;
75
- type KeysOfUnion<T> = T extends T ? keyof T : never;
76
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
77
- [K in keyof P]: Exact<P[K], I[K]>;
78
- } & {
79
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
80
- };
81
69
  export interface MessageFns<T> {
82
70
  encode(message: T, writer?: BinaryWriter): BinaryWriter;
83
71
  decode(input: BinaryReader | Uint8Array, length?: number): T;
84
- fromJSON(object: any): T;
85
- toJSON(message: T): unknown;
86
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
87
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
88
72
  }
89
- export {};