@rendley/sdk 1.12.18 → 1.12.19
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/dist/Engine.d.ts +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/libs/ffmpeg/classes.d.ts +2 -0
- package/dist/libs/ffmpeg/const.d.ts +1 -0
- package/dist/libs/ffmpeg/types.d.ts +5 -0
- package/dist/modules/clip/Clip.d.ts +32 -27
- package/dist/modules/clip/ClipStyle.d.ts +3 -0
- package/dist/modules/clip/clips/video/VideoClip.d.ts +2 -1
- package/dist/modules/settings/Settings.d.ts +9 -0
- package/dist/types/hash.types.d.ts +4 -0
- package/dist/utils/animation/animation.d.ts +7 -6
- package/dist/utils/browser/isLocalNetworkHost.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DemuxerPacket, FFFSMountOptions, FFFSPath, FFFSType, FFMessageFrameData, FFMessageLoadConfig, FFMessageRenderSettings, FileData, FSNode, IsFirst, LogEventCallback, OK, ProgressEventCallback, FFMessageMuxerData, FFMessageInitMuxerData, FFMessageAuthentificateData, FFMessageFetchTSChunksData, FFMessageTranscodeData, FFMessageFrame } from "./types";
|
|
2
2
|
import { MediaInfo } from '../../modules/ffmpeg/types/FFmpeg.types';
|
|
3
|
+
import { HashAlgorithmEnum } from '../../types/hash.types';
|
|
3
4
|
type FFMessageOptions = {
|
|
4
5
|
signal?: AbortSignal;
|
|
5
6
|
};
|
|
@@ -219,6 +220,7 @@ export declare class FFmpeg {
|
|
|
219
220
|
* @category FFmpeg
|
|
220
221
|
*/
|
|
221
222
|
getMediaInfo: (path: string, { signal }?: FFMessageOptions) => Promise<MediaInfo>;
|
|
223
|
+
getFileHash: (path: string, algorithm: HashAlgorithmEnum, { signal }?: FFMessageOptions) => Promise<string>;
|
|
222
224
|
getMediaSubtitles: (path: string, { signal }?: FFMessageOptions) => Promise<string>;
|
|
223
225
|
private tmpADownloadTag;
|
|
224
226
|
downloadFile: (path: string, downloadFileName: string | undefined) => Promise<OK>;
|
|
@@ -26,6 +26,7 @@ export declare enum FFMessageType {
|
|
|
26
26
|
RENDER_ADD_FRAME = "RENDER_ADD_FRAME",
|
|
27
27
|
GET_INFO = "GET_INFO",
|
|
28
28
|
GET_SUBTITLES = "GET_SUBTITLES",
|
|
29
|
+
GET_HASH = "GET_HASH",
|
|
29
30
|
DEMUXER_INIT = "DEMUXER_INIT",
|
|
30
31
|
DEMUXER_SEEK = "DEMUXER_SEEK",
|
|
31
32
|
DEMUXER_CLOSE = "DEMUXER_CLOSE",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { HashAlgorithmEnum } from '../../types/hash.types';
|
|
1
2
|
export type FFFSPath = string;
|
|
2
3
|
export type FFmpegCoreModule = any;
|
|
3
4
|
export type FFmpegCoreModuleFactory = any;
|
|
@@ -109,6 +110,10 @@ export interface FFMessageListDirData {
|
|
|
109
110
|
export interface FFMessageGetInfoData {
|
|
110
111
|
path: FFFSPath;
|
|
111
112
|
}
|
|
113
|
+
export interface FFMessageGetHashData {
|
|
114
|
+
path: FFFSPath;
|
|
115
|
+
algorithm: HashAlgorithmEnum;
|
|
116
|
+
}
|
|
112
117
|
export interface FFMessageGetSubtitlesData {
|
|
113
118
|
path: FFFSPath;
|
|
114
119
|
}
|
|
@@ -42,7 +42,7 @@ export interface ClipOptions<K extends ClipStyle = ClipStyle> {
|
|
|
42
42
|
}
|
|
43
43
|
export declare const AnimationClassSchema: z.ZodObject<{
|
|
44
44
|
animationDataIn: z.ZodOptional<z.ZodObject<{
|
|
45
|
-
name: z.ZodString
|
|
45
|
+
name: z.ZodDefault<z.ZodString>;
|
|
46
46
|
speed: z.ZodOptional<z.ZodNumber>;
|
|
47
47
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
48
48
|
amplification: z.ZodOptional<z.ZodNumber>;
|
|
@@ -114,7 +114,6 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
114
114
|
offset?: number | undefined;
|
|
115
115
|
amplification?: number | undefined;
|
|
116
116
|
}, {
|
|
117
|
-
name: string;
|
|
118
117
|
propertyAnimations: {
|
|
119
118
|
property: string;
|
|
120
119
|
keyframes: {
|
|
@@ -127,6 +126,7 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
127
126
|
inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
128
127
|
outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
129
128
|
}[];
|
|
129
|
+
name?: string | undefined;
|
|
130
130
|
speed?: number | undefined;
|
|
131
131
|
offset?: number | undefined;
|
|
132
132
|
amplification?: number | undefined;
|
|
@@ -134,7 +134,7 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
134
134
|
outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
135
135
|
}>>;
|
|
136
136
|
animationDataOut: z.ZodOptional<z.ZodObject<{
|
|
137
|
-
name: z.ZodString
|
|
137
|
+
name: z.ZodDefault<z.ZodString>;
|
|
138
138
|
speed: z.ZodOptional<z.ZodNumber>;
|
|
139
139
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
140
140
|
amplification: z.ZodOptional<z.ZodNumber>;
|
|
@@ -206,7 +206,6 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
206
206
|
offset?: number | undefined;
|
|
207
207
|
amplification?: number | undefined;
|
|
208
208
|
}, {
|
|
209
|
-
name: string;
|
|
210
209
|
propertyAnimations: {
|
|
211
210
|
property: string;
|
|
212
211
|
keyframes: {
|
|
@@ -219,6 +218,7 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
219
218
|
inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
220
219
|
outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
221
220
|
}[];
|
|
221
|
+
name?: string | undefined;
|
|
222
222
|
speed?: number | undefined;
|
|
223
223
|
offset?: number | undefined;
|
|
224
224
|
amplification?: number | undefined;
|
|
@@ -226,7 +226,7 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
226
226
|
outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
227
227
|
}>>;
|
|
228
228
|
animationDataLoop: z.ZodOptional<z.ZodObject<{
|
|
229
|
-
name: z.ZodString
|
|
229
|
+
name: z.ZodDefault<z.ZodString>;
|
|
230
230
|
speed: z.ZodOptional<z.ZodNumber>;
|
|
231
231
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
232
232
|
amplification: z.ZodOptional<z.ZodNumber>;
|
|
@@ -298,7 +298,6 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
298
298
|
offset?: number | undefined;
|
|
299
299
|
amplification?: number | undefined;
|
|
300
300
|
}, {
|
|
301
|
-
name: string;
|
|
302
301
|
propertyAnimations: {
|
|
303
302
|
property: string;
|
|
304
303
|
keyframes: {
|
|
@@ -311,6 +310,7 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
311
310
|
inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
312
311
|
outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
313
312
|
}[];
|
|
313
|
+
name?: string | undefined;
|
|
314
314
|
speed?: number | undefined;
|
|
315
315
|
offset?: number | undefined;
|
|
316
316
|
amplification?: number | undefined;
|
|
@@ -388,7 +388,6 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
388
388
|
} | undefined;
|
|
389
389
|
}, {
|
|
390
390
|
animationDataIn?: {
|
|
391
|
-
name: string;
|
|
392
391
|
propertyAnimations: {
|
|
393
392
|
property: string;
|
|
394
393
|
keyframes: {
|
|
@@ -401,6 +400,7 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
401
400
|
inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
402
401
|
outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
403
402
|
}[];
|
|
403
|
+
name?: string | undefined;
|
|
404
404
|
speed?: number | undefined;
|
|
405
405
|
offset?: number | undefined;
|
|
406
406
|
amplification?: number | undefined;
|
|
@@ -408,7 +408,6 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
408
408
|
outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
409
409
|
} | undefined;
|
|
410
410
|
animationDataOut?: {
|
|
411
|
-
name: string;
|
|
412
411
|
propertyAnimations: {
|
|
413
412
|
property: string;
|
|
414
413
|
keyframes: {
|
|
@@ -421,6 +420,7 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
421
420
|
inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
422
421
|
outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
423
422
|
}[];
|
|
423
|
+
name?: string | undefined;
|
|
424
424
|
speed?: number | undefined;
|
|
425
425
|
offset?: number | undefined;
|
|
426
426
|
amplification?: number | undefined;
|
|
@@ -428,7 +428,6 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
428
428
|
outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
429
429
|
} | undefined;
|
|
430
430
|
animationDataLoop?: {
|
|
431
|
-
name: string;
|
|
432
431
|
propertyAnimations: {
|
|
433
432
|
property: string;
|
|
434
433
|
keyframes: {
|
|
@@ -441,6 +440,7 @@ export declare const AnimationClassSchema: z.ZodObject<{
|
|
|
441
440
|
inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
442
441
|
outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
443
442
|
}[];
|
|
443
|
+
name?: string | undefined;
|
|
444
444
|
speed?: number | undefined;
|
|
445
445
|
offset?: number | undefined;
|
|
446
446
|
amplification?: number | undefined;
|
|
@@ -489,7 +489,7 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
489
489
|
text: z.ZodOptional<z.ZodString>;
|
|
490
490
|
animationController: z.ZodOptional<z.ZodObject<{
|
|
491
491
|
animationDataIn: z.ZodOptional<z.ZodObject<{
|
|
492
|
-
name: z.ZodString
|
|
492
|
+
name: z.ZodDefault<z.ZodString>;
|
|
493
493
|
speed: z.ZodOptional<z.ZodNumber>;
|
|
494
494
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
495
495
|
amplification: z.ZodOptional<z.ZodNumber>;
|
|
@@ -561,7 +561,6 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
561
561
|
offset?: number | undefined;
|
|
562
562
|
amplification?: number | undefined;
|
|
563
563
|
}, {
|
|
564
|
-
name: string;
|
|
565
564
|
propertyAnimations: {
|
|
566
565
|
property: string;
|
|
567
566
|
keyframes: {
|
|
@@ -574,6 +573,7 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
574
573
|
inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
575
574
|
outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
576
575
|
}[];
|
|
576
|
+
name?: string | undefined;
|
|
577
577
|
speed?: number | undefined;
|
|
578
578
|
offset?: number | undefined;
|
|
579
579
|
amplification?: number | undefined;
|
|
@@ -581,7 +581,7 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
581
581
|
outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
582
582
|
}>>;
|
|
583
583
|
animationDataOut: z.ZodOptional<z.ZodObject<{
|
|
584
|
-
name: z.ZodString
|
|
584
|
+
name: z.ZodDefault<z.ZodString>;
|
|
585
585
|
speed: z.ZodOptional<z.ZodNumber>;
|
|
586
586
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
587
587
|
amplification: z.ZodOptional<z.ZodNumber>;
|
|
@@ -653,7 +653,6 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
653
653
|
offset?: number | undefined;
|
|
654
654
|
amplification?: number | undefined;
|
|
655
655
|
}, {
|
|
656
|
-
name: string;
|
|
657
656
|
propertyAnimations: {
|
|
658
657
|
property: string;
|
|
659
658
|
keyframes: {
|
|
@@ -666,6 +665,7 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
666
665
|
inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
667
666
|
outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
668
667
|
}[];
|
|
668
|
+
name?: string | undefined;
|
|
669
669
|
speed?: number | undefined;
|
|
670
670
|
offset?: number | undefined;
|
|
671
671
|
amplification?: number | undefined;
|
|
@@ -673,7 +673,7 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
673
673
|
outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
674
674
|
}>>;
|
|
675
675
|
animationDataLoop: z.ZodOptional<z.ZodObject<{
|
|
676
|
-
name: z.ZodString
|
|
676
|
+
name: z.ZodDefault<z.ZodString>;
|
|
677
677
|
speed: z.ZodOptional<z.ZodNumber>;
|
|
678
678
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
679
679
|
amplification: z.ZodOptional<z.ZodNumber>;
|
|
@@ -745,7 +745,6 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
745
745
|
offset?: number | undefined;
|
|
746
746
|
amplification?: number | undefined;
|
|
747
747
|
}, {
|
|
748
|
-
name: string;
|
|
749
748
|
propertyAnimations: {
|
|
750
749
|
property: string;
|
|
751
750
|
keyframes: {
|
|
@@ -758,6 +757,7 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
758
757
|
inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
759
758
|
outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
760
759
|
}[];
|
|
760
|
+
name?: string | undefined;
|
|
761
761
|
speed?: number | undefined;
|
|
762
762
|
offset?: number | undefined;
|
|
763
763
|
amplification?: number | undefined;
|
|
@@ -835,7 +835,6 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
835
835
|
} | undefined;
|
|
836
836
|
}, {
|
|
837
837
|
animationDataIn?: {
|
|
838
|
-
name: string;
|
|
839
838
|
propertyAnimations: {
|
|
840
839
|
property: string;
|
|
841
840
|
keyframes: {
|
|
@@ -848,6 +847,7 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
848
847
|
inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
849
848
|
outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
850
849
|
}[];
|
|
850
|
+
name?: string | undefined;
|
|
851
851
|
speed?: number | undefined;
|
|
852
852
|
offset?: number | undefined;
|
|
853
853
|
amplification?: number | undefined;
|
|
@@ -855,7 +855,6 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
855
855
|
outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
856
856
|
} | undefined;
|
|
857
857
|
animationDataOut?: {
|
|
858
|
-
name: string;
|
|
859
858
|
propertyAnimations: {
|
|
860
859
|
property: string;
|
|
861
860
|
keyframes: {
|
|
@@ -868,6 +867,7 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
868
867
|
inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
869
868
|
outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
870
869
|
}[];
|
|
870
|
+
name?: string | undefined;
|
|
871
871
|
speed?: number | undefined;
|
|
872
872
|
offset?: number | undefined;
|
|
873
873
|
amplification?: number | undefined;
|
|
@@ -875,7 +875,6 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
875
875
|
outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
876
876
|
} | undefined;
|
|
877
877
|
animationDataLoop?: {
|
|
878
|
-
name: string;
|
|
879
878
|
propertyAnimations: {
|
|
880
879
|
property: string;
|
|
881
880
|
keyframes: {
|
|
@@ -888,6 +887,7 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
888
887
|
inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
889
888
|
outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
890
889
|
}[];
|
|
890
|
+
name?: string | undefined;
|
|
891
891
|
speed?: number | undefined;
|
|
892
892
|
offset?: number | undefined;
|
|
893
893
|
amplification?: number | undefined;
|
|
@@ -1035,7 +1035,6 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
1035
1035
|
text?: string | undefined;
|
|
1036
1036
|
animationController?: {
|
|
1037
1037
|
animationDataIn?: {
|
|
1038
|
-
name: string;
|
|
1039
1038
|
propertyAnimations: {
|
|
1040
1039
|
property: string;
|
|
1041
1040
|
keyframes: {
|
|
@@ -1048,6 +1047,7 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
1048
1047
|
inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
1049
1048
|
outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
1050
1049
|
}[];
|
|
1050
|
+
name?: string | undefined;
|
|
1051
1051
|
speed?: number | undefined;
|
|
1052
1052
|
offset?: number | undefined;
|
|
1053
1053
|
amplification?: number | undefined;
|
|
@@ -1055,7 +1055,6 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
1055
1055
|
outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
1056
1056
|
} | undefined;
|
|
1057
1057
|
animationDataOut?: {
|
|
1058
|
-
name: string;
|
|
1059
1058
|
propertyAnimations: {
|
|
1060
1059
|
property: string;
|
|
1061
1060
|
keyframes: {
|
|
@@ -1068,6 +1067,7 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
1068
1067
|
inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
1069
1068
|
outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
1070
1069
|
}[];
|
|
1070
|
+
name?: string | undefined;
|
|
1071
1071
|
speed?: number | undefined;
|
|
1072
1072
|
offset?: number | undefined;
|
|
1073
1073
|
amplification?: number | undefined;
|
|
@@ -1075,7 +1075,6 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
1075
1075
|
outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
1076
1076
|
} | undefined;
|
|
1077
1077
|
animationDataLoop?: {
|
|
1078
|
-
name: string;
|
|
1079
1078
|
propertyAnimations: {
|
|
1080
1079
|
property: string;
|
|
1081
1080
|
keyframes: {
|
|
@@ -1088,6 +1087,7 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
1088
1087
|
inOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
1089
1088
|
outOutOfRange?: import('../../index').OutOfRangeEnum | undefined;
|
|
1090
1089
|
}[];
|
|
1090
|
+
name?: string | undefined;
|
|
1091
1091
|
speed?: number | undefined;
|
|
1092
1092
|
offset?: number | undefined;
|
|
1093
1093
|
amplification?: number | undefined;
|
|
@@ -1129,8 +1129,10 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1129
1129
|
sprite: T;
|
|
1130
1130
|
style: K;
|
|
1131
1131
|
state: ClipState;
|
|
1132
|
-
protected
|
|
1133
|
-
protected
|
|
1132
|
+
protected insideInTransition: boolean;
|
|
1133
|
+
protected insideOutTransition: boolean;
|
|
1134
|
+
protected transitionInId: string | null;
|
|
1135
|
+
protected transitionOutId: string | null;
|
|
1134
1136
|
protected layerId: string;
|
|
1135
1137
|
protected clipMasksLazyDeserialize: z.infer<typeof MaskFilterSchema>[];
|
|
1136
1138
|
private readonly AnimationClass;
|
|
@@ -1173,10 +1175,13 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1173
1175
|
getDuration(): number;
|
|
1174
1176
|
getFilterById(filterId: string): Filter | undefined;
|
|
1175
1177
|
getEffectById(effectId: string): Effect | undefined;
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1178
|
+
setInsideInTransition(insideTransition: boolean): void;
|
|
1179
|
+
setInsideOutTransition(insideTransition: boolean): void;
|
|
1180
|
+
getInsideTransition(): boolean;
|
|
1181
|
+
setTransitionInId(transitionId: string | null): void;
|
|
1182
|
+
getTransitionInId(): string | null;
|
|
1183
|
+
setTransitionOutId(transitionId: string | null): void;
|
|
1184
|
+
getTransitionOutId(): string | null;
|
|
1180
1185
|
getMediaId(): string | undefined;
|
|
1181
1186
|
getIsProcessing(): boolean;
|
|
1182
1187
|
discardProcessing(): void;
|
|
@@ -73,6 +73,7 @@ export declare class ClipStyle<T extends PIXI.Sprite = PIXI.Sprite> {
|
|
|
73
73
|
protected animationScaleMultiplier: [number, number];
|
|
74
74
|
protected animationRotationOffset: number;
|
|
75
75
|
protected animationAlphaMultiplier: number;
|
|
76
|
+
protected animationCropOffset: [number, number, number, number];
|
|
76
77
|
private lastCornerRadius;
|
|
77
78
|
private lastCornerSize;
|
|
78
79
|
private lastCornerScale;
|
|
@@ -104,6 +105,8 @@ export declare class ClipStyle<T extends PIXI.Sprite = PIXI.Sprite> {
|
|
|
104
105
|
getAlpha(): number;
|
|
105
106
|
setAnimationAlphaMultiplier(alpha: number): void;
|
|
106
107
|
getAnimationAlphaMultiplier(): number;
|
|
108
|
+
setAnimationCropOffset(left: number, top: number, right: number, bottom: number): void;
|
|
109
|
+
getAnimationCropOffset(): [number, number, number, number];
|
|
107
110
|
setRotation(rotation: number): void;
|
|
108
111
|
getRotation(): number;
|
|
109
112
|
setAnimationRotationOffset(rotation: number): void;
|
|
@@ -43,11 +43,12 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
|
|
|
43
43
|
private decoderFlushed;
|
|
44
44
|
private decoderFlushPromise;
|
|
45
45
|
private renderWithPlayer;
|
|
46
|
+
private forceSoftwareDecoder;
|
|
46
47
|
private ffmpeg;
|
|
47
48
|
private callbacks;
|
|
48
49
|
constructor(options: VideoClipOptions);
|
|
49
50
|
init(layerId: string): Promise<void>;
|
|
50
|
-
private
|
|
51
|
+
private updateRenderFlags;
|
|
51
52
|
private updateAudioDuration;
|
|
52
53
|
getLeftRenderBound(): number;
|
|
53
54
|
getRightRenderBound(): number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { HashAlgorithmEnum } from '../../types/hash.types';
|
|
2
3
|
export declare enum PreferredAcceleration {
|
|
3
4
|
HARDWARE = "prefer-hardware",
|
|
4
5
|
SOFTWARE = "prefer-software",
|
|
@@ -72,6 +73,7 @@ export declare const SettingsSchema: z.ZodObject<{
|
|
|
72
73
|
subtitlesScaleOnResize: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
73
74
|
subtitlesAutoWrapOnResize: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
74
75
|
viewAutoLayoutOnResize: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof AutoLayoutMode>>>;
|
|
76
|
+
mediaHashAlgorithm: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof HashAlgorithmEnum>>>;
|
|
75
77
|
}, "strip", z.ZodTypeAny, {
|
|
76
78
|
m3u8MaxResolution: [number, number];
|
|
77
79
|
clipAudioStoreSamples: boolean;
|
|
@@ -113,6 +115,7 @@ export declare const SettingsSchema: z.ZodObject<{
|
|
|
113
115
|
subtitlesScaleOnResize: boolean;
|
|
114
116
|
subtitlesAutoWrapOnResize: boolean;
|
|
115
117
|
viewAutoLayoutOnResize: AutoLayoutMode;
|
|
118
|
+
mediaHashAlgorithm: HashAlgorithmEnum;
|
|
116
119
|
}, {
|
|
117
120
|
m3u8MaxResolution?: [number, number] | undefined;
|
|
118
121
|
clipAudioStoreSamples?: boolean | undefined;
|
|
@@ -154,6 +157,7 @@ export declare const SettingsSchema: z.ZodObject<{
|
|
|
154
157
|
subtitlesScaleOnResize?: boolean | undefined;
|
|
155
158
|
subtitlesAutoWrapOnResize?: boolean | undefined;
|
|
156
159
|
viewAutoLayoutOnResize?: AutoLayoutMode | undefined;
|
|
160
|
+
mediaHashAlgorithm?: HashAlgorithmEnum | undefined;
|
|
157
161
|
}>;
|
|
158
162
|
export declare class Settings {
|
|
159
163
|
private m3u8MaxResolution;
|
|
@@ -196,6 +200,7 @@ export declare class Settings {
|
|
|
196
200
|
private subtitlesScaleOnResize;
|
|
197
201
|
private subtitlesAutoWrapOnResize;
|
|
198
202
|
private viewAutoLayoutOnResize;
|
|
203
|
+
private mediaHashAlgorithm;
|
|
199
204
|
private readonly defaultSettings;
|
|
200
205
|
constructor();
|
|
201
206
|
getDefaultSettings(): {
|
|
@@ -239,6 +244,7 @@ export declare class Settings {
|
|
|
239
244
|
subtitlesScaleOnResize: boolean;
|
|
240
245
|
subtitlesAutoWrapOnResize: boolean;
|
|
241
246
|
viewAutoLayoutOnResize: AutoLayoutMode;
|
|
247
|
+
mediaHashAlgorithm: HashAlgorithmEnum;
|
|
242
248
|
};
|
|
243
249
|
setClipAudioStoreSamples(storeSamples: boolean): void;
|
|
244
250
|
getClipAudioStoreSamples(): boolean;
|
|
@@ -332,6 +338,8 @@ export declare class Settings {
|
|
|
332
338
|
getSubtitlesAutoWrapOnResize(): boolean;
|
|
333
339
|
setViewAutoLayoutOnResize(autoLayoutMode: AutoLayoutMode): void;
|
|
334
340
|
getViewAutoLayoutOnResize(): AutoLayoutMode;
|
|
341
|
+
setMediaHashAlgorithm(algorithm: HashAlgorithmEnum): void;
|
|
342
|
+
getMediaHashAlgorithm(): HashAlgorithmEnum;
|
|
335
343
|
serialize(): {
|
|
336
344
|
m3u8MaxResolution: [number, number];
|
|
337
345
|
clipAudioStoreSamples: boolean;
|
|
@@ -373,6 +381,7 @@ export declare class Settings {
|
|
|
373
381
|
subtitlesScaleOnResize: boolean;
|
|
374
382
|
subtitlesAutoWrapOnResize: boolean;
|
|
375
383
|
viewAutoLayoutOnResize: AutoLayoutMode;
|
|
384
|
+
mediaHashAlgorithm: HashAlgorithmEnum;
|
|
376
385
|
};
|
|
377
386
|
static deserialize(data: object): Settings;
|
|
378
387
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare enum AnimationSpaceEnum {
|
|
3
|
-
ABSOLUTE = 0
|
|
4
|
-
RELATIVE_ADDITIVE = 1
|
|
5
|
-
RELATIVE_MULTIPLICATIVE = 2
|
|
6
|
-
PERCENTAGE = 3
|
|
3
|
+
ABSOLUTE = 0,// keyValue
|
|
4
|
+
RELATIVE_ADDITIVE = 1,// propertyValue + keyValue
|
|
5
|
+
RELATIVE_MULTIPLICATIVE = 2,// propertyValue * keyValue
|
|
6
|
+
PERCENTAGE = 3,// propertyValue * keyValue / 100
|
|
7
|
+
ADDITIVE_MULTIPLICATIVE_TO_RELATIVE = 4
|
|
7
8
|
}
|
|
8
9
|
export declare enum OutOfRangeEnum {
|
|
9
10
|
NONE = "none",
|
|
@@ -134,7 +135,7 @@ export declare const PropertyAnimationSchema: z.ZodObject<{
|
|
|
134
135
|
outOutOfRange?: OutOfRangeEnum | undefined;
|
|
135
136
|
}>;
|
|
136
137
|
export declare const AnimationDataSchema: z.ZodObject<{
|
|
137
|
-
name: z.ZodString
|
|
138
|
+
name: z.ZodDefault<z.ZodString>;
|
|
138
139
|
speed: z.ZodOptional<z.ZodNumber>;
|
|
139
140
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
140
141
|
amplification: z.ZodOptional<z.ZodNumber>;
|
|
@@ -206,7 +207,6 @@ export declare const AnimationDataSchema: z.ZodObject<{
|
|
|
206
207
|
offset?: number | undefined;
|
|
207
208
|
amplification?: number | undefined;
|
|
208
209
|
}, {
|
|
209
|
-
name: string;
|
|
210
210
|
propertyAnimations: {
|
|
211
211
|
property: string;
|
|
212
212
|
keyframes: {
|
|
@@ -219,6 +219,7 @@ export declare const AnimationDataSchema: z.ZodObject<{
|
|
|
219
219
|
inOutOfRange?: OutOfRangeEnum | undefined;
|
|
220
220
|
outOutOfRange?: OutOfRangeEnum | undefined;
|
|
221
221
|
}[];
|
|
222
|
+
name?: string | undefined;
|
|
222
223
|
speed?: number | undefined;
|
|
223
224
|
offset?: number | undefined;
|
|
224
225
|
amplification?: number | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isLocalNetworkHost(): boolean;
|