googlevideo 1.0.0 → 1.1.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 -9
- package/README.md +66 -66
- package/bundle/index.cjs +1 -1
- package/bundle/index.cjs.map +2 -2
- package/dist/protos/generated/misc/common.js +1 -1
- package/dist/protos/generated/video_streaming/buffered_range.js +1 -1
- package/dist/protos/generated/video_streaming/client_abr_state.js +1 -1
- package/dist/protos/generated/video_streaming/crypto_params.js +1 -1
- package/dist/protos/generated/video_streaming/encrypted_player_request.js +1 -1
- package/dist/protos/generated/video_streaming/format_initialization_metadata.js +1 -1
- package/dist/protos/generated/video_streaming/media_capabilities.js +1 -1
- package/dist/protos/generated/video_streaming/media_header.js +1 -1
- package/dist/protos/generated/video_streaming/next_request_policy.js +1 -1
- package/dist/protos/generated/video_streaming/onesie_header.js +1 -1
- package/dist/protos/generated/video_streaming/onesie_header_type.js +1 -1
- package/dist/protos/generated/video_streaming/onesie_player_request.js +1 -1
- package/dist/protos/generated/video_streaming/onesie_player_response.js +1 -1
- package/dist/protos/generated/video_streaming/onesie_request.js +1 -1
- package/dist/protos/generated/video_streaming/playback_cookie.js +1 -1
- package/dist/protos/generated/video_streaming/playback_start_policy.js +1 -1
- package/dist/protos/generated/video_streaming/proxy_status.js +1 -1
- package/dist/protos/generated/video_streaming/request_cancellation_policy.js +1 -1
- package/dist/protos/generated/video_streaming/sabr_error.js +1 -1
- package/dist/protos/generated/video_streaming/sabr_redirect.js +1 -1
- package/dist/protos/generated/video_streaming/stream_protection_status.js +1 -1
- package/dist/protos/generated/video_streaming/streamer_context.js +1 -1
- package/dist/protos/generated/video_streaming/time_range.js +1 -1
- package/dist/protos/generated/video_streaming/video_playback_abr_request.js +1 -1
- package/dist/src/core/ServerAbrStream.js +1 -1
- package/package.json +59 -61
|
@@ -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
|
|
4
|
+
// protoc v3.21.12
|
|
5
5
|
// source: misc/common.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
@@ -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
|
|
4
|
+
// protoc v3.21.12
|
|
5
5
|
// source: video_streaming/buffered_range.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
@@ -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
|
|
4
|
+
// protoc v3.21.12
|
|
5
5
|
// source: video_streaming/client_abr_state.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
@@ -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
|
|
4
|
+
// protoc v3.21.12
|
|
5
5
|
// source: video_streaming/crypto_params.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
@@ -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
|
|
4
|
+
// protoc v3.21.12
|
|
5
5
|
// source: video_streaming/encrypted_player_request.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
@@ -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
|
|
4
|
+
// protoc v3.21.12
|
|
5
5
|
// source: video_streaming/format_initialization_metadata.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
@@ -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
|
|
4
|
+
// protoc v3.21.12
|
|
5
5
|
// source: video_streaming/media_capabilities.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
@@ -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
|
|
4
|
+
// protoc v3.21.12
|
|
5
5
|
// source: video_streaming/media_header.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
@@ -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
|
|
4
|
+
// protoc v3.21.12
|
|
5
5
|
// source: video_streaming/next_request_policy.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
@@ -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
|
|
4
|
+
// protoc v3.21.12
|
|
5
5
|
// source: video_streaming/onesie_header.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
@@ -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
|
|
4
|
+
// protoc v3.21.12
|
|
5
5
|
// source: video_streaming/onesie_header_type.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
export const protobufPackage = "video_streaming";
|
|
@@ -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
|
|
4
|
+
// protoc v3.21.12
|
|
5
5
|
// source: video_streaming/onesie_player_request.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
@@ -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
|
|
4
|
+
// protoc v3.21.12
|
|
5
5
|
// source: video_streaming/onesie_player_response.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
@@ -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
|
|
4
|
+
// protoc v3.21.12
|
|
5
5
|
// source: video_streaming/onesie_request.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
@@ -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
|
|
4
|
+
// protoc v3.21.12
|
|
5
5
|
// source: video_streaming/playback_cookie.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
@@ -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
|
|
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";
|
|
@@ -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
|
|
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";
|
|
@@ -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
|
|
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";
|
|
@@ -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
|
|
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";
|
|
@@ -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
|
|
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";
|
|
@@ -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
|
|
4
|
+
// protoc v3.21.12
|
|
5
5
|
// source: video_streaming/streamer_context.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
@@ -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
|
|
4
|
+
// protoc v3.21.12
|
|
5
5
|
// source: video_streaming/time_range.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
@@ -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
|
|
4
|
+
// protoc v3.21.12
|
|
5
5
|
// source: video_streaming/video_playback_abr_request.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
@@ -69,7 +69,7 @@ export class ServerAbrStream extends EventEmitterLike {
|
|
|
69
69
|
? data.initializedFormats.find((fmt) => fmt.mimeType?.includes('video'))
|
|
70
70
|
: data.initializedFormats[0];
|
|
71
71
|
for (const fmt of data.initializedFormats) {
|
|
72
|
-
this.previousSequences.set(
|
|
72
|
+
this.previousSequences.set(fmt.formatKey, fmt.sequenceList.map((seq) => seq.sequenceNumber || 0));
|
|
73
73
|
}
|
|
74
74
|
if (!mainFormat ||
|
|
75
75
|
mainFormat.sequenceCount ===
|
package/package.json
CHANGED
|
@@ -1,61 +1,59 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "googlevideo",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "A set of utilities for working with Google Video APIs.",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"types": "./dist/src/index.d.ts",
|
|
8
|
-
"module": "./dist/src/index.js",
|
|
9
|
-
"scripts": {
|
|
10
|
-
"lint": "npx eslint ./src/**/*.ts",
|
|
11
|
-
"lint:fix": "npx eslint --fix ./src/**/*.ts",
|
|
12
|
-
"clean": "npx rimraf ./dist ./bundle ./protos/generated",
|
|
13
|
-
"build": "npm run clean && npm run lint && npm run build:proto && npm run build:esm && npm run bundle:node",
|
|
14
|
-
"build:esm": "npx tsc",
|
|
15
|
-
"build:proto": "node ./dev-scripts/generate-proto.mjs",
|
|
16
|
-
"bundle:node": "npx esbuild ./dist/src/index.js --bundle --outfile=./bundle/index.cjs --platform=node --target=node16 --format=cjs --sourcemap --banner:js=\"/* eslint-disable */\"",
|
|
17
|
-
"prepare": "npm run build"
|
|
18
|
-
},
|
|
19
|
-
"repository": {
|
|
20
|
-
"type": "git",
|
|
21
|
-
"url": "git+https://github.com/LuanRT/GoogleVideo.git"
|
|
22
|
-
},
|
|
23
|
-
"keywords": [
|
|
24
|
-
"UMP",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"@
|
|
40
|
-
"@
|
|
41
|
-
"@types/
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"typescript
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "googlevideo",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "A set of utilities for working with Google Video APIs.",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"types": "./dist/src/index.d.ts",
|
|
8
|
+
"module": "./dist/src/index.js",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"lint": "npx eslint ./src/**/*.ts",
|
|
11
|
+
"lint:fix": "npx eslint --fix ./src/**/*.ts",
|
|
12
|
+
"clean": "npx rimraf ./dist ./bundle ./protos/generated",
|
|
13
|
+
"build": "npm run clean && npm run lint && npm run build:proto && npm run build:esm && npm run bundle:node",
|
|
14
|
+
"build:esm": "npx tsc",
|
|
15
|
+
"build:proto": "node ./dev-scripts/generate-proto.mjs",
|
|
16
|
+
"bundle:node": "npx esbuild ./dist/src/index.js --bundle --outfile=./bundle/index.cjs --platform=node --target=node16 --format=cjs --sourcemap --banner:js=\"/* eslint-disable */\"",
|
|
17
|
+
"prepare": "npm run build"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git+https://github.com/LuanRT/GoogleVideo.git"
|
|
22
|
+
},
|
|
23
|
+
"keywords": [
|
|
24
|
+
"UMP",
|
|
25
|
+
"SABR",
|
|
26
|
+
"Google",
|
|
27
|
+
"YouTube"
|
|
28
|
+
],
|
|
29
|
+
"author": "LuanRT <luan.lrt4@gmail.com> (https://github.com/LuanRT)",
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"bugs": {
|
|
32
|
+
"url": "https://github.com/LuanRT/GoogleVideo/issues"
|
|
33
|
+
},
|
|
34
|
+
"homepage": "https://github.com/LuanRT/GoogleVideo#readme",
|
|
35
|
+
"funding": [
|
|
36
|
+
"https://github.com/sponsors/LuanRT"
|
|
37
|
+
],
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@eslint/js": "^9.9.0",
|
|
40
|
+
"@stylistic/eslint-plugin": "^2.6.4",
|
|
41
|
+
"@types/eslint__js": "^8.42.3",
|
|
42
|
+
"esbuild": "^0.24.0",
|
|
43
|
+
"eslint": "^9.9.0",
|
|
44
|
+
"globals": "^15.9.0",
|
|
45
|
+
"ts-proto": "^2.2.0",
|
|
46
|
+
"typescript": "^5.5.4",
|
|
47
|
+
"typescript-eslint": "^8.2.0"
|
|
48
|
+
},
|
|
49
|
+
"exports": {
|
|
50
|
+
".": {
|
|
51
|
+
"types": "./dist/src/index.d.ts",
|
|
52
|
+
"import": "./dist/src/index.js",
|
|
53
|
+
"require": "./bundle/index.cjs"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"@bufbuild/protobuf": "^2.0.0"
|
|
58
|
+
}
|
|
59
|
+
}
|