@vkontakte/videoplayer-interactive 1.0.61 → 1.0.62-dev.04ce2cd1.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/es2015.cjs +8 -7
- package/es2015.esm.js +8 -7
- package/es2018.cjs +8 -7
- package/es2018.esm.js +8 -7
- package/es2024.cjs +8 -7
- package/es2024.esm.js +8 -7
- package/esnext.cjs +8 -7
- package/esnext.esm.js +8 -7
- package/evergreen.esm.js +8 -7
- package/package.json +4 -4
- package/types/index.d.ts +9 -8
- package/types/manifest/index.d.ts +3 -3
- package/types/manifest/utils.d.ts +33 -32
- package/types/modules/Graph/Graph.d.ts +47 -46
- package/types/modules/Graph/index.d.ts +1 -1
- package/types/modules/Interactives/Interactives.d.ts +138 -135
- package/types/modules/Interactives/Layout.d.ts +11 -11
- package/types/modules/Interactives/containers/ChoiceContainer.d.ts +31 -31
- package/types/modules/Interactives/containers/Container.d.ts +19 -19
- package/types/modules/Interactives/containers/index.d.ts +4 -4
- package/types/modules/Interactives/containers/types.d.ts +6 -6
- package/types/modules/Interactives/containers/utils.d.ts +3 -3
- package/types/modules/Interactives/controls/AreaControl.d.ts +17 -16
- package/types/modules/Interactives/controls/ButtonControl.d.ts +21 -20
- package/types/modules/Interactives/controls/Control.d.ts +42 -41
- package/types/modules/Interactives/controls/TextControl.d.ts +14 -13
- package/types/modules/Interactives/controls/index.d.ts +6 -6
- package/types/modules/Interactives/controls/types.d.ts +22 -19
- package/types/modules/Interactives/controls/utils.d.ts +10 -10
- package/types/modules/Interactives/index.d.ts +14 -95
- package/types/modules/Interactives/styles/index.d.ts +1 -1
- package/types/modules/Interactives/types.d.ts +64 -64
- package/types/modules/Interactives/utils/BlinkAnimationRef.d.ts +10 -10
- package/types/modules/Interactives/utils/ControlFillAnimation/ControlFillAnimation.d.ts +30 -30
- package/types/modules/Interactives/utils/ControlFillAnimation/index.d.ts +1 -1
- package/types/modules/Interactives/utils/ControlFillAnimation/utils.d.ts +9 -9
- package/types/modules/Interactives/utils/ControlTap/ControlTap.d.ts +12 -12
- package/types/modules/Interactives/utils/ControlTap/index.d.ts +1 -1
- package/types/modules/Interactives/utils/ControlTap/utils.d.ts +3 -3
- package/types/modules/Interactives/utils/GameController.d.ts +66 -66
- package/types/modules/Interactives/utils/GroupsStack.d.ts +18 -20
- package/types/modules/Interactives/utils/HistoryController.d.ts +39 -40
- package/types/modules/Interactives/utils/InteractiveEvents.d.ts +30 -29
- package/types/modules/Interactives/utils/ResizeManager.d.ts +10 -10
- package/types/modules/Interactives/utils/SelectBranches.d.ts +15 -15
- package/types/modules/Interactives/utils/SelectBranches.types.d.ts +53 -53
- package/types/modules/Interactives/utils/angleUtils.d.ts +13 -13
- package/types/modules/Interactives/utils/createControlText.d.ts +2 -2
- package/types/modules/Interactives/utils/emitOnError.d.ts +10 -10
- package/types/modules/Interactives/utils/events.d.ts +67 -67
- package/types/modules/Interactives/utils/events.types.d.ts +35 -32
- package/types/modules/Interactives/utils/fallbackStrategies.d.ts +15 -14
- package/types/modules/Interactives/utils/functionUtils.d.ts +9 -2
- package/types/modules/Interactives/utils/gameUtils.d.ts +22 -21
- package/types/modules/Interactives/utils/getInteractiveRanges.d.ts +5 -5
- package/types/modules/Interactives/utils/renderingUtils.d.ts +48 -53
- package/types/modules/Loaders/index.d.ts +1 -1
- package/types/modules/Loaders/movikaProjectIdLoader/index.d.ts +1 -1
- package/types/modules/Loaders/vkVideoLoader/CustomVkVideoLoader.d.ts +8 -8
- package/types/modules/Loaders/vkVideoLoader/index.d.ts +1 -1
- package/types/modules/Loaders/vkVideoLoader/types.d.ts +231 -231
- package/types/modules/Loaders/vkVideoLoader/utils.d.ts +1 -1
- package/types/modules/ManifestController/Loadable.d.ts +5 -5
- package/types/modules/ManifestController/ManifestController.d.ts +29 -29
- package/types/modules/ManifestController/index.d.ts +1 -1
- package/types/modules/ManifestController/utils.d.ts +6 -6
- package/types/modules/SeamlessController/InstanceManager.d.ts +10 -10
- package/types/modules/SeamlessController/SeamlessController.d.ts +30 -27
- package/types/modules/SeamlessController/utils.d.ts +6 -6
- package/types/modules/SeekToInteractiveController/SeekToInteractiveController.d.ts +8 -8
- package/types/modules/SeekToInteractiveController/index.d.ts +1 -1
- package/types/types/CustomError.d.ts +9 -9
- package/types/types/index.d.ts +2 -2
- package/types/utils/CssVarsManager.d.ts +21 -21
- package/types/utils/Error.d.ts +6 -6
- package/types/utils/EventEmitter.d.ts +10 -10
- package/types/utils/LastFrame.d.ts +29 -29
- package/types/utils/LastFrameCanvasAPI.d.ts +17 -17
- package/types/utils/MultiMap.d.ts +8 -8
- package/types/utils/Raf.d.ts +11 -11
- package/types/utils/chapterHelpers.d.ts +1 -1
- package/types/utils/compareVersions.d.ts +12 -12
- package/types/utils/extractVkMovieId.d.ts +1 -1
- package/types/utils/getVideoContentSize.d.ts +3 -3
- package/types/utils/hexToRgb.d.ts +2 -2
- package/types/utils/throttle.d.ts +1 -1
- package/types/utils/typeCheck.d.ts +7 -7
|
@@ -1,80 +1,75 @@
|
|
|
1
|
-
import { type Control } from
|
|
2
|
-
import { type Dimensions } from
|
|
1
|
+
import { type Control } from "../../../manifest";
|
|
2
|
+
import { type Dimensions } from "../controls";
|
|
3
3
|
export declare const classnamesPrefix = "interactive";
|
|
4
4
|
export declare const controlStylesFallbacks: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
5
|
+
textColor: string;
|
|
6
|
+
textSize: number;
|
|
7
|
+
textContent: string;
|
|
8
|
+
roundCorners: number;
|
|
9
|
+
borderWidth: number;
|
|
10
|
+
borderWidthRawValue: string;
|
|
11
|
+
roundCornersRawValue: string;
|
|
12
|
+
borderColor: string;
|
|
13
|
+
borderAlpha: number;
|
|
14
|
+
backgroundColor: string;
|
|
15
|
+
backgroundAlpha: number;
|
|
16
|
+
innerSizesDependOn: string;
|
|
17
|
+
angle: number;
|
|
18
|
+
shadowColorLight: string;
|
|
19
|
+
shadowColorDark: string;
|
|
20
|
+
shadowColorAlpha: number;
|
|
21
21
|
};
|
|
22
22
|
type ControlStylesFallbacks = typeof controlStylesFallbacks;
|
|
23
23
|
export declare enum ALIGN_ITEMS {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
top = "flex-start",
|
|
25
|
+
bottom = "flex-end",
|
|
26
|
+
center = "center"
|
|
27
27
|
}
|
|
28
28
|
export declare enum JUSTIFY_CONTENT {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
export declare enum TEXT_ALIGN {
|
|
34
|
-
start = "left",
|
|
35
|
-
end = "right",
|
|
36
|
-
center = "center"
|
|
29
|
+
start = "flex-start",
|
|
30
|
+
end = "flex-end",
|
|
31
|
+
center = "center"
|
|
37
32
|
}
|
|
38
33
|
export type SetTextPositionStylesProps = {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
target: HTMLElement;
|
|
35
|
+
props: Control["props"]["text"] & {
|
|
36
|
+
alignment: Control["layoutParams"]["alignment"];
|
|
37
|
+
};
|
|
43
38
|
};
|
|
44
39
|
export declare const setTextPositionStyles: ({ target, props }: SetTextPositionStylesProps) => void;
|
|
45
40
|
type SetTextStylesProps = {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
41
|
+
target: HTMLElement;
|
|
42
|
+
props: Control["props"];
|
|
43
|
+
fallback: ControlStylesFallbacks;
|
|
44
|
+
dependsOn: Dimensions;
|
|
50
45
|
};
|
|
51
46
|
export declare const setTextStyles: ({ target, props, fallback, dependsOn }: SetTextStylesProps) => void;
|
|
52
47
|
type SetBackgroundStylesProps = {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
48
|
+
target: HTMLElement;
|
|
49
|
+
props: Control["props"];
|
|
50
|
+
fallback: ControlStylesFallbacks;
|
|
56
51
|
};
|
|
57
52
|
export declare const setBackgroundStyles: ({ target, props, fallback }: SetBackgroundStylesProps) => void;
|
|
58
53
|
type SetBorderStylesProps = {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
54
|
+
target: HTMLElement;
|
|
55
|
+
props: Control["props"];
|
|
56
|
+
fallback: ControlStylesFallbacks;
|
|
57
|
+
dependsOn: Dimensions;
|
|
58
|
+
useRawValues?: boolean;
|
|
64
59
|
};
|
|
65
60
|
export declare const setBorderStyles: ({ target, props, fallback, dependsOn, useRawValues }: SetBorderStylesProps) => void;
|
|
66
61
|
type SetShadowStylesProps = {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
62
|
+
target: HTMLElement;
|
|
63
|
+
props?: Control["props"];
|
|
64
|
+
fallback: ControlStylesFallbacks;
|
|
65
|
+
isDark: boolean;
|
|
66
|
+
baseDimension: string;
|
|
72
67
|
};
|
|
73
68
|
export declare const setShadowStyles: ({ target, isDark, baseDimension, fallback }: SetShadowStylesProps) => void;
|
|
74
69
|
type SetAngleProps = {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
70
|
+
target: HTMLElement;
|
|
71
|
+
fallback: ControlStylesFallbacks;
|
|
72
|
+
layoutParams: Control["layoutParams"];
|
|
78
73
|
};
|
|
79
74
|
export declare const setAngle: ({ target, layoutParams, fallback }: SetAngleProps) => void;
|
|
80
75
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { movikaProjectIdLoader } from
|
|
1
|
+
export { movikaProjectIdLoader } from "./movikaProjectIdLoader";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { movikaProjectIdLoader } from
|
|
1
|
+
export { movikaProjectIdLoader } from "./movikaProjectIdLoader";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { GetVKVideoParams, VKVideoLoaderInterface } from
|
|
1
|
+
import type { GetVKVideoParams, VKVideoLoaderInterface } from "./types";
|
|
2
2
|
export declare class CustomVkVideoLoader implements VKVideoLoaderInterface {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
private _requestData;
|
|
4
|
+
private _mediaMap;
|
|
5
|
+
private _abortController;
|
|
6
|
+
constructor(options: GetVKVideoParams);
|
|
7
|
+
resolve({ actions, result, errors, ...args }: Record<string, any>): Promise<Promise<Record<string, any>>>;
|
|
8
|
+
private _transform;
|
|
9
|
+
private _send;
|
|
10
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CustomVkVideoLoader } from
|
|
1
|
+
export { CustomVkVideoLoader } from "./CustomVkVideoLoader";
|
|
@@ -1,257 +1,257 @@
|
|
|
1
|
-
import type { ManifestVideo, ManifestVideoVariant } from
|
|
2
|
-
export type { Extension, Standard } from
|
|
1
|
+
import type { ManifestVideo, ManifestVideoVariant } from "../../../manifest";
|
|
2
|
+
export type { Extension, Standard } from "../../../manifest";
|
|
3
3
|
export interface GetVKVideoParams {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
access_token: string;
|
|
5
|
+
owner_id?: number;
|
|
6
|
+
videos?: string;
|
|
7
|
+
album_id?: number;
|
|
8
|
+
count?: number;
|
|
9
|
+
offset?: number;
|
|
10
|
+
extended?: boolean;
|
|
11
|
+
fields?: string;
|
|
12
|
+
v: number;
|
|
13
13
|
}
|
|
14
14
|
export interface FullRequestParams {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
baseURL: string;
|
|
16
|
+
requestParams: GetVKVideoParams;
|
|
17
17
|
}
|
|
18
18
|
export interface VKVideoLoaderInterface {
|
|
19
|
-
|
|
19
|
+
resolve(arg: Record<string, any>): Promise<Record<string, any>>;
|
|
20
20
|
}
|
|
21
21
|
export type ExtendedManifestVideoVariant = ManifestVideoVariant & {
|
|
22
|
-
|
|
22
|
+
vkVideoModel?: VideoVideoFull;
|
|
23
23
|
};
|
|
24
|
-
export type ExtendedManifestVideo = Omit<ManifestVideo,
|
|
25
|
-
|
|
24
|
+
export type ExtendedManifestVideo = Omit<ManifestVideo, "variants"> & {
|
|
25
|
+
variants: ExtendedManifestVideoVariant[];
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
* video.get
|
|
29
|
+
*
|
|
30
|
+
* Returns detailed information about videos.
|
|
31
|
+
*/
|
|
32
32
|
export interface VideoGetParams {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
33
|
+
/**
|
|
34
|
+
* ID of the user or community that owns the video(s).
|
|
35
|
+
*/
|
|
36
|
+
owner_id?: number;
|
|
37
|
+
group_id?: number;
|
|
38
|
+
for_user_id?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Video IDs, in the following format: "<owner_id>_<media_id>,<owner_id>_<media_id>", Use a negative value to designate a community ID. Example: "-4363_136089719,13245770_137352259"
|
|
41
|
+
*/
|
|
42
|
+
videos?: string;
|
|
43
|
+
/**
|
|
44
|
+
* ID of the album containing the video(s).
|
|
45
|
+
*/
|
|
46
|
+
album_id?: number;
|
|
47
|
+
width?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Number of videos to return.
|
|
50
|
+
*/
|
|
51
|
+
count?: number;
|
|
52
|
+
/**
|
|
53
|
+
* Offset needed to return a specific subset of videos.
|
|
54
|
+
*/
|
|
55
|
+
offset?: number;
|
|
56
|
+
need_privacy?: 0 | 1;
|
|
57
|
+
need_embed?: 0 | 1;
|
|
58
|
+
/**
|
|
59
|
+
* '1' - to return an extended response with additional fields
|
|
60
|
+
*/
|
|
61
|
+
extended?: 0 | 1;
|
|
62
|
+
fields?: string;
|
|
63
|
+
device_id?: string;
|
|
64
|
+
ok_session_key?: string;
|
|
65
|
+
united_video_only?: 0 | 1;
|
|
66
|
+
ok_client_params?: string;
|
|
67
67
|
}
|
|
68
68
|
export interface VideoGetResponse {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
69
|
+
/**
|
|
70
|
+
* Total number
|
|
71
|
+
*/
|
|
72
|
+
[key: string]: unknown;
|
|
73
|
+
count: number;
|
|
74
|
+
items: VideoVideoFull;
|
|
75
75
|
}
|
|
76
76
|
export interface VideoVideoFull {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
77
|
+
[key: string]: any;
|
|
78
|
+
/**
|
|
79
|
+
* List of video episodes with timecodes
|
|
80
|
+
*/
|
|
81
|
+
episodes?: VideoEpisode[];
|
|
82
|
+
qualities_info?: VideoQualityInfo[];
|
|
83
|
+
/**
|
|
84
|
+
* Video duration in seconds
|
|
85
|
+
*/
|
|
86
|
+
duration?: number;
|
|
87
|
+
image?: VideoVideoImage[];
|
|
88
|
+
first_frame?: VideoVideoImage[];
|
|
89
|
+
files?: VideoVideoFiles;
|
|
90
|
+
trailer?: VideoVideoFiles;
|
|
91
|
+
timeline_thumbs?: VideoTimelineThumbs;
|
|
92
92
|
}
|
|
93
93
|
export interface VideoVideoFiles {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
94
|
+
/**
|
|
95
|
+
* URL of the external player
|
|
96
|
+
*/
|
|
97
|
+
external?: string;
|
|
98
|
+
/**
|
|
99
|
+
* URL of the mpeg4 file with 144p quality
|
|
100
|
+
*/
|
|
101
|
+
mp4_144?: string;
|
|
102
|
+
/**
|
|
103
|
+
* URL of the mpeg4 file with 240p quality
|
|
104
|
+
*/
|
|
105
|
+
mp4_240?: string;
|
|
106
|
+
/**
|
|
107
|
+
* URL of the mpeg4 file with 360p quality
|
|
108
|
+
*/
|
|
109
|
+
mp4_360?: string;
|
|
110
|
+
/**
|
|
111
|
+
* URL of the mpeg4 file with 480p quality
|
|
112
|
+
*/
|
|
113
|
+
mp4_480?: string;
|
|
114
|
+
/**
|
|
115
|
+
* URL of the mpeg4 file with 720p quality
|
|
116
|
+
*/
|
|
117
|
+
mp4_720?: string;
|
|
118
|
+
/**
|
|
119
|
+
* URL of the mpeg4 file with 1080p quality
|
|
120
|
+
*/
|
|
121
|
+
mp4_1080?: string;
|
|
122
|
+
/**
|
|
123
|
+
* URL of the mpeg4 file with 2K quality
|
|
124
|
+
*/
|
|
125
|
+
mp4_1440?: string;
|
|
126
|
+
/**
|
|
127
|
+
* URL of the mpeg4 file with 4K quality
|
|
128
|
+
*/
|
|
129
|
+
mp4_2160?: string;
|
|
130
|
+
/**
|
|
131
|
+
* URL of the flv file with 320p quality
|
|
132
|
+
*/
|
|
133
|
+
flv_320?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Instant streaming mp4 URL
|
|
136
|
+
*/
|
|
137
|
+
src?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Live stream URL
|
|
140
|
+
*/
|
|
141
|
+
live?: string;
|
|
142
|
+
/**
|
|
143
|
+
* HLS playlist URL
|
|
144
|
+
*/
|
|
145
|
+
hls?: string;
|
|
146
|
+
/**
|
|
147
|
+
* RTMP stream URL
|
|
148
|
+
*/
|
|
149
|
+
rtmp?: string;
|
|
150
|
+
/**
|
|
151
|
+
* OKMP RTMP stream URL
|
|
152
|
+
*/
|
|
153
|
+
okmp_rtmp?: string;
|
|
154
|
+
/**
|
|
155
|
+
* WebSocket stream URL
|
|
156
|
+
*/
|
|
157
|
+
ws?: string;
|
|
158
|
+
/**
|
|
159
|
+
* CMAF stream URL
|
|
160
|
+
*/
|
|
161
|
+
cmaf?: string;
|
|
162
|
+
/**
|
|
163
|
+
* DASH manifest URL
|
|
164
|
+
*/
|
|
165
|
+
dash_uni?: string;
|
|
166
|
+
/**
|
|
167
|
+
* Separated DASH manifest URL
|
|
168
|
+
*/
|
|
169
|
+
dash_sep?: string;
|
|
170
|
+
/**
|
|
171
|
+
* VP9 DASH manifest URL
|
|
172
|
+
*/
|
|
173
|
+
dash_webm?: string;
|
|
174
|
+
/**
|
|
175
|
+
* HEVC DASH manifest URL
|
|
176
|
+
*/
|
|
177
|
+
dash_hevc?: string;
|
|
178
|
+
/**
|
|
179
|
+
* VP9 DASH manifest URL live
|
|
180
|
+
*/
|
|
181
|
+
dash_webm_live?: string;
|
|
182
|
+
/**
|
|
183
|
+
* HLS live playback URL
|
|
184
|
+
*/
|
|
185
|
+
hls_live_playback?: string;
|
|
186
|
+
/**
|
|
187
|
+
* DASH live playback URL
|
|
188
|
+
*/
|
|
189
|
+
dash_live_playback?: string;
|
|
190
|
+
/**
|
|
191
|
+
* HLS ondemand URL
|
|
192
|
+
*/
|
|
193
|
+
hls_ondemand?: string;
|
|
194
|
+
/**
|
|
195
|
+
* DASH ondemand URL
|
|
196
|
+
*/
|
|
197
|
+
dash_ondemand?: string;
|
|
198
|
+
/**
|
|
199
|
+
* Failover host
|
|
200
|
+
*/
|
|
201
|
+
failover_host?: string;
|
|
202
|
+
/**
|
|
203
|
+
* UV migration location info
|
|
204
|
+
*/
|
|
205
|
+
united_migration_location?: string;
|
|
206
|
+
/**
|
|
207
|
+
* UV migration video size in location
|
|
208
|
+
*/
|
|
209
|
+
united_migration_size?: number;
|
|
210
210
|
}
|
|
211
211
|
export interface VideoQualityInfo {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
212
|
+
/**
|
|
213
|
+
* Size of video: 144, 240, 360 and etc
|
|
214
|
+
*/
|
|
215
|
+
quality?: number;
|
|
216
|
+
/**
|
|
217
|
+
* List of quality features
|
|
218
|
+
*/
|
|
219
|
+
params?: Array<"neurohd">;
|
|
220
220
|
}
|
|
221
221
|
export interface VideoEpisode {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
222
|
+
/**
|
|
223
|
+
* Seconds from start of the video
|
|
224
|
+
*/
|
|
225
|
+
time?: number;
|
|
226
|
+
/**
|
|
227
|
+
* Description of episode
|
|
228
|
+
*/
|
|
229
|
+
text?: string;
|
|
230
230
|
}
|
|
231
231
|
export interface VideoTimelineThumbs {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
232
|
+
count_per_image?: number;
|
|
233
|
+
count_per_row?: number;
|
|
234
|
+
count_total?: number;
|
|
235
|
+
frame_height?: number;
|
|
236
|
+
frame_width?: number;
|
|
237
|
+
links?: string[];
|
|
238
|
+
is_uv?: boolean;
|
|
239
|
+
frequency?: number;
|
|
240
240
|
}
|
|
241
241
|
export interface VideoVideoImage {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
242
|
+
id?: string;
|
|
243
|
+
/**
|
|
244
|
+
* Image url
|
|
245
|
+
*/
|
|
246
|
+
url: string;
|
|
247
|
+
/**
|
|
248
|
+
* Image width
|
|
249
|
+
*/
|
|
250
|
+
width: number;
|
|
251
|
+
/**
|
|
252
|
+
* Image height
|
|
253
|
+
*/
|
|
254
|
+
height: number;
|
|
255
|
+
theme?: "light" | "dark";
|
|
256
|
+
with_padding?: 1;
|
|
257
257
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { FullRequestParams, VideoVideoImage } from
|
|
1
|
+
import type { FullRequestParams, VideoVideoImage } from "./types";
|
|
2
2
|
export declare function createRequestURL({ baseURL, requestParams }: FullRequestParams): string;
|
|
3
3
|
export declare function findMaxResolutionFrame(frames?: VideoVideoImage[]): VideoVideoImage | undefined;
|