googlevideo 1.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.
- package/LICENSE +9 -0
- package/README.md +66 -0
- package/bundle/index.cjs +7134 -0
- package/bundle/index.cjs.map +7 -0
- package/dist/protos/generated/misc/common.d.ts +47 -0
- package/dist/protos/generated/misc/common.js +365 -0
- package/dist/protos/generated/video_streaming/buffered_range.d.ts +50 -0
- package/dist/protos/generated/video_streaming/buffered_range.js +403 -0
- package/dist/protos/generated/video_streaming/client_abr_state.d.ts +69 -0
- package/dist/protos/generated/video_streaming/client_abr_state.js +647 -0
- package/dist/protos/generated/video_streaming/crypto_params.d.ts +35 -0
- package/dist/protos/generated/video_streaming/crypto_params.js +143 -0
- package/dist/protos/generated/video_streaming/encrypted_player_request.d.ts +35 -0
- package/dist/protos/generated/video_streaming/encrypted_player_request.js +219 -0
- package/dist/protos/generated/video_streaming/format_initialization_metadata.d.ts +35 -0
- package/dist/protos/generated/video_streaming/format_initialization_metadata.js +207 -0
- package/dist/protos/generated/video_streaming/media_capabilities.d.ts +43 -0
- package/dist/protos/generated/video_streaming/media_capabilities.js +315 -0
- package/dist/protos/generated/video_streaming/media_header.d.ts +49 -0
- package/dist/protos/generated/video_streaming/media_header.js +328 -0
- package/dist/protos/generated/video_streaming/next_request_policy.d.ts +30 -0
- package/dist/protos/generated/video_streaming/next_request_policy.js +132 -0
- package/dist/protos/generated/video_streaming/onesie_header.d.ts +45 -0
- package/dist/protos/generated/video_streaming/onesie_header.js +339 -0
- package/dist/protos/generated/video_streaming/onesie_header_type.d.ts +32 -0
- package/dist/protos/generated/video_streaming/onesie_header_type.js +182 -0
- package/dist/protos/generated/video_streaming/onesie_player_request.d.ts +31 -0
- package/dist/protos/generated/video_streaming/onesie_player_request.js +122 -0
- package/dist/protos/generated/video_streaming/onesie_player_response.d.ts +29 -0
- package/dist/protos/generated/video_streaming/onesie_player_response.js +121 -0
- package/dist/protos/generated/video_streaming/onesie_request.d.ts +36 -0
- package/dist/protos/generated/video_streaming/onesie_request.js +199 -0
- package/dist/protos/generated/video_streaming/playback_cookie.d.ts +30 -0
- package/dist/protos/generated/video_streaming/playback_cookie.js +110 -0
- package/dist/protos/generated/video_streaming/playback_start_policy.d.ts +31 -0
- package/dist/protos/generated/video_streaming/playback_start_policy.js +155 -0
- package/dist/protos/generated/video_streaming/proxy_status.d.ts +16 -0
- package/dist/protos/generated/video_streaming/proxy_status.js +86 -0
- package/dist/protos/generated/video_streaming/request_cancellation_policy.d.ts +33 -0
- package/dist/protos/generated/video_streaming/request_cancellation_policy.js +173 -0
- package/dist/protos/generated/video_streaming/sabr_error.d.ts +26 -0
- package/dist/protos/generated/video_streaming/sabr_error.js +77 -0
- package/dist/protos/generated/video_streaming/sabr_redirect.d.ts +25 -0
- package/dist/protos/generated/video_streaming/sabr_redirect.js +61 -0
- package/dist/protos/generated/video_streaming/stream_protection_status.d.ts +26 -0
- package/dist/protos/generated/video_streaming/stream_protection_status.js +77 -0
- package/dist/protos/generated/video_streaming/streamer_context.d.ts +89 -0
- package/dist/protos/generated/video_streaming/streamer_context.js +915 -0
- package/dist/protos/generated/video_streaming/time_range.d.ts +27 -0
- package/dist/protos/generated/video_streaming/time_range.js +101 -0
- package/dist/protos/generated/video_streaming/video_playback_abr_request.d.ts +69 -0
- package/dist/protos/generated/video_streaming/video_playback_abr_request.js +659 -0
- package/dist/src/core/ChunkedDataBuffer.d.ts +20 -0
- package/dist/src/core/ChunkedDataBuffer.js +82 -0
- package/dist/src/core/ServerAbrStream.d.ts +38 -0
- package/dist/src/core/ServerAbrStream.js +272 -0
- package/dist/src/core/UMP.d.ts +10 -0
- package/dist/src/core/UMP.js +110 -0
- package/dist/src/core/index.d.ts +3 -0
- package/dist/src/core/index.js +3 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +4 -0
- package/dist/src/utils/EventEmitterLike.d.ts +8 -0
- package/dist/src/utils/EventEmitterLike.js +50 -0
- package/dist/src/utils/Protos.d.ts +23 -0
- package/dist/src/utils/Protos.js +23 -0
- package/dist/src/utils/helpers.d.ts +63 -0
- package/dist/src/utils/helpers.js +101 -0
- package/dist/src/utils/index.d.ts +4 -0
- package/dist/src/utils/index.js +3 -0
- package/dist/src/utils/types.d.ts +65 -0
- package/dist/src/utils/types.js +1 -0
- package/package.json +61 -0
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.2.0
|
|
4
|
+
// protoc v5.28.0
|
|
5
|
+
// source: video_streaming/request_cancellation_policy.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
|
+
export const protobufPackage = "video_streaming";
|
|
9
|
+
function createBaseRequestCancellationPolicy() {
|
|
10
|
+
return { N0: 0, items: [], jq: 0 };
|
|
11
|
+
}
|
|
12
|
+
export const RequestCancellationPolicy = {
|
|
13
|
+
encode(message, writer = new BinaryWriter()) {
|
|
14
|
+
if (message.N0 !== undefined && message.N0 !== 0) {
|
|
15
|
+
writer.uint32(8).int32(message.N0);
|
|
16
|
+
}
|
|
17
|
+
for (const v of message.items) {
|
|
18
|
+
RequestCancellationPolicy_Item.encode(v, writer.uint32(18).fork()).join();
|
|
19
|
+
}
|
|
20
|
+
if (message.jq !== undefined && message.jq !== 0) {
|
|
21
|
+
writer.uint32(24).int32(message.jq);
|
|
22
|
+
}
|
|
23
|
+
return writer;
|
|
24
|
+
},
|
|
25
|
+
decode(input, length) {
|
|
26
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
27
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
+
const message = createBaseRequestCancellationPolicy();
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
const tag = reader.uint32();
|
|
31
|
+
switch (tag >>> 3) {
|
|
32
|
+
case 1:
|
|
33
|
+
if (tag !== 8) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
message.N0 = reader.int32();
|
|
37
|
+
continue;
|
|
38
|
+
case 2:
|
|
39
|
+
if (tag !== 18) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
message.items.push(RequestCancellationPolicy_Item.decode(reader, reader.uint32()));
|
|
43
|
+
continue;
|
|
44
|
+
case 3:
|
|
45
|
+
if (tag !== 24) {
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
message.jq = reader.int32();
|
|
49
|
+
continue;
|
|
50
|
+
}
|
|
51
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
reader.skip(tag & 7);
|
|
55
|
+
}
|
|
56
|
+
return message;
|
|
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
|
+
};
|
|
91
|
+
function createBaseRequestCancellationPolicy_Item() {
|
|
92
|
+
return { fR: 0, NK: 0, minReadaheadMs: 0 };
|
|
93
|
+
}
|
|
94
|
+
export const RequestCancellationPolicy_Item = {
|
|
95
|
+
encode(message, writer = new BinaryWriter()) {
|
|
96
|
+
if (message.fR !== undefined && message.fR !== 0) {
|
|
97
|
+
writer.uint32(8).int32(message.fR);
|
|
98
|
+
}
|
|
99
|
+
if (message.NK !== undefined && message.NK !== 0) {
|
|
100
|
+
writer.uint32(16).int32(message.NK);
|
|
101
|
+
}
|
|
102
|
+
if (message.minReadaheadMs !== undefined && message.minReadaheadMs !== 0) {
|
|
103
|
+
writer.uint32(24).int32(message.minReadaheadMs);
|
|
104
|
+
}
|
|
105
|
+
return writer;
|
|
106
|
+
},
|
|
107
|
+
decode(input, length) {
|
|
108
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
109
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
110
|
+
const message = createBaseRequestCancellationPolicy_Item();
|
|
111
|
+
while (reader.pos < end) {
|
|
112
|
+
const tag = reader.uint32();
|
|
113
|
+
switch (tag >>> 3) {
|
|
114
|
+
case 1:
|
|
115
|
+
if (tag !== 8) {
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
message.fR = reader.int32();
|
|
119
|
+
continue;
|
|
120
|
+
case 2:
|
|
121
|
+
if (tag !== 16) {
|
|
122
|
+
break;
|
|
123
|
+
}
|
|
124
|
+
message.NK = reader.int32();
|
|
125
|
+
continue;
|
|
126
|
+
case 3:
|
|
127
|
+
if (tag !== 24) {
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
message.minReadaheadMs = reader.int32();
|
|
131
|
+
continue;
|
|
132
|
+
}
|
|
133
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
134
|
+
break;
|
|
135
|
+
}
|
|
136
|
+
reader.skip(tag & 7);
|
|
137
|
+
}
|
|
138
|
+
return message;
|
|
139
|
+
},
|
|
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
|
+
};
|
|
171
|
+
function isSet(value) {
|
|
172
|
+
return value !== null && value !== undefined;
|
|
173
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "video_streaming";
|
|
3
|
+
export interface SabrError {
|
|
4
|
+
type?: string | undefined;
|
|
5
|
+
code?: number | undefined;
|
|
6
|
+
}
|
|
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
|
+
export interface MessageFns<T> {
|
|
19
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
20
|
+
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
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.2.0
|
|
4
|
+
// protoc v5.28.0
|
|
5
|
+
// source: video_streaming/sabr_error.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
|
+
export const protobufPackage = "video_streaming";
|
|
9
|
+
function createBaseSabrError() {
|
|
10
|
+
return { type: "", code: 0 };
|
|
11
|
+
}
|
|
12
|
+
export const SabrError = {
|
|
13
|
+
encode(message, writer = new BinaryWriter()) {
|
|
14
|
+
if (message.type !== undefined && message.type !== "") {
|
|
15
|
+
writer.uint32(10).string(message.type);
|
|
16
|
+
}
|
|
17
|
+
if (message.code !== undefined && message.code !== 0) {
|
|
18
|
+
writer.uint32(16).int32(message.code);
|
|
19
|
+
}
|
|
20
|
+
return writer;
|
|
21
|
+
},
|
|
22
|
+
decode(input, length) {
|
|
23
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
24
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
+
const message = createBaseSabrError();
|
|
26
|
+
while (reader.pos < end) {
|
|
27
|
+
const tag = reader.uint32();
|
|
28
|
+
switch (tag >>> 3) {
|
|
29
|
+
case 1:
|
|
30
|
+
if (tag !== 10) {
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
message.type = reader.string();
|
|
34
|
+
continue;
|
|
35
|
+
case 2:
|
|
36
|
+
if (tag !== 16) {
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
message.code = reader.int32();
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
reader.skip(tag & 7);
|
|
46
|
+
}
|
|
47
|
+
return message;
|
|
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
|
+
};
|
|
75
|
+
function isSet(value) {
|
|
76
|
+
return value !== null && value !== undefined;
|
|
77
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "video_streaming";
|
|
3
|
+
export interface SabrRedirect {
|
|
4
|
+
url?: string | undefined;
|
|
5
|
+
}
|
|
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
|
+
export interface MessageFns<T> {
|
|
18
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
19
|
+
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
|
+
}
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.2.0
|
|
4
|
+
// protoc v5.28.0
|
|
5
|
+
// source: video_streaming/sabr_redirect.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
|
+
export const protobufPackage = "video_streaming";
|
|
9
|
+
function createBaseSabrRedirect() {
|
|
10
|
+
return { url: "" };
|
|
11
|
+
}
|
|
12
|
+
export const SabrRedirect = {
|
|
13
|
+
encode(message, writer = new BinaryWriter()) {
|
|
14
|
+
if (message.url !== undefined && message.url !== "") {
|
|
15
|
+
writer.uint32(10).string(message.url);
|
|
16
|
+
}
|
|
17
|
+
return writer;
|
|
18
|
+
},
|
|
19
|
+
decode(input, length) {
|
|
20
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
21
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
22
|
+
const message = createBaseSabrRedirect();
|
|
23
|
+
while (reader.pos < end) {
|
|
24
|
+
const tag = reader.uint32();
|
|
25
|
+
switch (tag >>> 3) {
|
|
26
|
+
case 1:
|
|
27
|
+
if (tag !== 10) {
|
|
28
|
+
break;
|
|
29
|
+
}
|
|
30
|
+
message.url = reader.string();
|
|
31
|
+
continue;
|
|
32
|
+
}
|
|
33
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
reader.skip(tag & 7);
|
|
37
|
+
}
|
|
38
|
+
return message;
|
|
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
|
+
};
|
|
59
|
+
function isSet(value) {
|
|
60
|
+
return value !== null && value !== undefined;
|
|
61
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "video_streaming";
|
|
3
|
+
export interface StreamProtectionStatus {
|
|
4
|
+
status?: number | undefined;
|
|
5
|
+
field2?: number | undefined;
|
|
6
|
+
}
|
|
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
|
+
export interface MessageFns<T> {
|
|
19
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
20
|
+
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
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.2.0
|
|
4
|
+
// protoc v5.28.0
|
|
5
|
+
// source: video_streaming/stream_protection_status.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
|
+
export const protobufPackage = "video_streaming";
|
|
9
|
+
function createBaseStreamProtectionStatus() {
|
|
10
|
+
return { status: 0, field2: 0 };
|
|
11
|
+
}
|
|
12
|
+
export const StreamProtectionStatus = {
|
|
13
|
+
encode(message, writer = new BinaryWriter()) {
|
|
14
|
+
if (message.status !== undefined && message.status !== 0) {
|
|
15
|
+
writer.uint32(8).int32(message.status);
|
|
16
|
+
}
|
|
17
|
+
if (message.field2 !== undefined && message.field2 !== 0) {
|
|
18
|
+
writer.uint32(16).int32(message.field2);
|
|
19
|
+
}
|
|
20
|
+
return writer;
|
|
21
|
+
},
|
|
22
|
+
decode(input, length) {
|
|
23
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
24
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
+
const message = createBaseStreamProtectionStatus();
|
|
26
|
+
while (reader.pos < end) {
|
|
27
|
+
const tag = reader.uint32();
|
|
28
|
+
switch (tag >>> 3) {
|
|
29
|
+
case 1:
|
|
30
|
+
if (tag !== 8) {
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
message.status = reader.int32();
|
|
34
|
+
continue;
|
|
35
|
+
case 2:
|
|
36
|
+
if (tag !== 16) {
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
message.field2 = reader.int32();
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
reader.skip(tag & 7);
|
|
46
|
+
}
|
|
47
|
+
return message;
|
|
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
|
+
};
|
|
75
|
+
function isSet(value) {
|
|
76
|
+
return value !== null && value !== undefined;
|
|
77
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "video_streaming";
|
|
3
|
+
export interface StreamerContext {
|
|
4
|
+
clientInfo?: StreamerContext_ClientInfo | undefined;
|
|
5
|
+
poToken?: Uint8Array | undefined;
|
|
6
|
+
playbackCookie?: Uint8Array | undefined;
|
|
7
|
+
gp?: Uint8Array | undefined;
|
|
8
|
+
field5: StreamerContext_Fqa[];
|
|
9
|
+
field6: number[];
|
|
10
|
+
field7?: string | undefined;
|
|
11
|
+
field8?: StreamerContext_Gqa | undefined;
|
|
12
|
+
}
|
|
13
|
+
export declare enum StreamerContext_ClientFormFactor {
|
|
14
|
+
UNKNOWN_FORM_FACTOR = 0,
|
|
15
|
+
FORM_FACTOR_VAL1 = 1,
|
|
16
|
+
FORM_FACTOR_VAL2 = 2,
|
|
17
|
+
UNRECOGNIZED = -1
|
|
18
|
+
}
|
|
19
|
+
export declare function streamerContext_ClientFormFactorFromJSON(object: any): StreamerContext_ClientFormFactor;
|
|
20
|
+
export declare function streamerContext_ClientFormFactorToJSON(object: StreamerContext_ClientFormFactor): string;
|
|
21
|
+
export interface StreamerContext_ClientInfo {
|
|
22
|
+
deviceMake?: string | undefined;
|
|
23
|
+
deviceModel?: string | undefined;
|
|
24
|
+
clientName?: number | undefined;
|
|
25
|
+
clientVersion?: string | undefined;
|
|
26
|
+
osName?: string | undefined;
|
|
27
|
+
osVersion?: string | undefined;
|
|
28
|
+
acceptLanguage?: string | undefined;
|
|
29
|
+
acceptRegion?: string | undefined;
|
|
30
|
+
screenWidthPoints?: number | undefined;
|
|
31
|
+
screenHeightPoints?: number | undefined;
|
|
32
|
+
screenWidthInches?: number | undefined;
|
|
33
|
+
screenHeightInches?: number | undefined;
|
|
34
|
+
screenPixelDensity?: number | undefined;
|
|
35
|
+
clientFormFactor?: StreamerContext_ClientFormFactor | undefined;
|
|
36
|
+
/** e.g. 243731017 */
|
|
37
|
+
gmscoreVersionCode?: number | undefined;
|
|
38
|
+
windowWidthPoints?: number | undefined;
|
|
39
|
+
windowHeightPoints?: number | undefined;
|
|
40
|
+
androidSdkVersion?: number | undefined;
|
|
41
|
+
screenDensityFloat?: number | undefined;
|
|
42
|
+
utcOffsetMinutes?: number | undefined;
|
|
43
|
+
timeZone?: string | undefined;
|
|
44
|
+
/** e.g. "qcom;taro" */
|
|
45
|
+
chipset?: string | undefined;
|
|
46
|
+
glDeviceInfo?: StreamerContext_GLDeviceInfo | undefined;
|
|
47
|
+
}
|
|
48
|
+
export interface StreamerContext_GLDeviceInfo {
|
|
49
|
+
glRenderer?: string | undefined;
|
|
50
|
+
glEsVersionMajor?: number | undefined;
|
|
51
|
+
glEsVersionMinor?: number | undefined;
|
|
52
|
+
}
|
|
53
|
+
export interface StreamerContext_Fqa {
|
|
54
|
+
type?: number | undefined;
|
|
55
|
+
value?: Uint8Array | undefined;
|
|
56
|
+
}
|
|
57
|
+
export interface StreamerContext_Gqa {
|
|
58
|
+
field1?: Uint8Array | undefined;
|
|
59
|
+
field2?: StreamerContext_Gqa_Hqa | undefined;
|
|
60
|
+
}
|
|
61
|
+
export interface StreamerContext_Gqa_Hqa {
|
|
62
|
+
code?: number | undefined;
|
|
63
|
+
message?: string | undefined;
|
|
64
|
+
}
|
|
65
|
+
export declare const StreamerContext: MessageFns<StreamerContext>;
|
|
66
|
+
export declare const StreamerContext_ClientInfo: MessageFns<StreamerContext_ClientInfo>;
|
|
67
|
+
export declare const StreamerContext_GLDeviceInfo: MessageFns<StreamerContext_GLDeviceInfo>;
|
|
68
|
+
export declare const StreamerContext_Fqa: MessageFns<StreamerContext_Fqa>;
|
|
69
|
+
export declare const StreamerContext_Gqa: MessageFns<StreamerContext_Gqa>;
|
|
70
|
+
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
|
+
export interface MessageFns<T> {
|
|
82
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
83
|
+
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
|
+
}
|
|
89
|
+
export {};
|