@rendley/sdk 1.8.4 → 1.9.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 +48 -48
- package/README.md +40 -40
- package/dist/Engine.d.ts +16 -15
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/libs/ffmpeg/classes.d.ts +1 -1
- package/dist/modules/clip/Clip.d.ts +6 -6
- package/dist/modules/clip/clips/audio/AudioClip.d.ts +2 -2
- package/dist/modules/clip/clips/custom/CustomClip.d.ts +2 -2
- package/dist/modules/clip/clips/htmlText/HtmlTextClip.d.ts +11 -11
- package/dist/modules/clip/clips/lottie/LottieClip.d.ts +2 -2
- package/dist/modules/clip/clips/shape/ShapeClip.d.ts +2 -2
- package/dist/modules/clip/clips/shape/ShapeStyle.d.ts +1 -1
- package/dist/modules/clip/clips/text/TextClip.d.ts +2 -2
- package/dist/modules/clip/clips/text/TextStyle.d.ts +8 -8
- package/dist/modules/clip/clips/video/VideoClip.d.ts +2 -2
- package/dist/modules/filter/MaskFilter.d.ts +1 -1
- package/dist/modules/renderer/Renderer.d.ts +15 -0
- package/dist/modules/renderer/index.d.ts +2 -0
- package/dist/modules/renderer/types/Renderer.types.d.ts +14 -0
- package/dist/modules/settings/Settings.d.ts +21 -7
- package/dist/modules/subtitles/SubtitleManager.d.ts +72 -72
- package/package.json +81 -81
package/LICENSE
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
Proprietary License Agreement
|
|
2
|
-
|
|
3
|
-
1. Grant of License
|
|
4
|
-
Onix Technologies ("Licensor") hereby grants you ("Licensee") a non-exclusive, non-transferable, limited license to use the Rendley SDK ("Software") solely for the purpose of developing and integrating applications in accordance with the terms of this Agreement.
|
|
5
|
-
|
|
6
|
-
2. Restrictions
|
|
7
|
-
|
|
8
|
-
Licensee shall not:
|
|
9
|
-
|
|
10
|
-
1. Modify, adapt, translate, or create derivative works of the Software without prior written consent from Licensor.
|
|
11
|
-
2. Reverse engineer, decompile, disassemble, or otherwise attempt to discover the source code of the Software.
|
|
12
|
-
3. Redistribute, sublicense, rent, lease, or lend the Software to any third party.
|
|
13
|
-
4. Use the Software for any purpose that is illegal or prohibited by law.
|
|
14
|
-
|
|
15
|
-
5. Intellectual Property Rights
|
|
16
|
-
|
|
17
|
-
The Software is protected by copyright laws and international copyright treaties, as well as other intellectual property laws and treaties. All title, ownership rights, and intellectual property rights in and to the Software and all copies thereof are owned by Licensor.
|
|
18
|
-
|
|
19
|
-
4. Fees and Payment
|
|
20
|
-
Licensee agrees to pay the license fees and any other charges incurred in connection with the use of the Software as specified in the order form or purchase agreement. All payments are non-refundable.
|
|
21
|
-
|
|
22
|
-
5. Support and Updates
|
|
23
|
-
Licensor may, at its sole discretion, provide updates, enhancements, or modifications to the Software. Licensor is not obligated to provide any support services, updates, or enhancements unless a separate support agreement is entered into.
|
|
24
|
-
|
|
25
|
-
6. Termination
|
|
26
|
-
This Agreement is effective until terminated. Licensee may terminate this Agreement at any time by destroying all copies of the Software in their possession. Licensor may terminate this Agreement if Licensee breaches any of the terms and conditions. Upon termination, Licensee must destroy all copies of the Software.
|
|
27
|
-
|
|
28
|
-
7. Disclaimer of Warranties
|
|
29
|
-
THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. LICENSOR DOES NOT WARRANT THAT THE SOFTWARE WILL MEET LICENSEE'S REQUIREMENTS OR THAT THE OPERATION OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR-FREE.
|
|
30
|
-
|
|
31
|
-
8. Limitation of Liability
|
|
32
|
-
IN NO EVENT SHALL LICENSOR BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES, OR DAMAGES FOR LOSS OF PROFITS, REVENUE, DATA, OR USE, INCURRED BY LICENSEE OR ANY THIRD PARTY, WHETHER IN AN ACTION IN CONTRACT OR TORT, ARISING FROM LICENSEE'S ACCESS TO, OR USE OF, THE SOFTWARE.
|
|
33
|
-
|
|
34
|
-
9. Governing Law
|
|
35
|
-
This Agreement shall be governed by and construed in accordance with the laws of Moldova, without regard to its conflict of laws principles.
|
|
36
|
-
|
|
37
|
-
10. Entire Agreement
|
|
38
|
-
This Agreement constitutes the entire agreement between the parties with respect to the use of the Software and supersedes all prior or contemporaneous understandings regarding such subject matter. Any modifications to this Agreement must be in writing and signed by both parties.
|
|
39
|
-
|
|
40
|
-
11. Severability
|
|
41
|
-
If any provision of this Agreement is held to be invalid or unenforceable, the remaining provisions will continue in full force and effect.
|
|
42
|
-
|
|
43
|
-
12. No Waiver
|
|
44
|
-
The failure of either party to enforce any right or provision of this Agreement will not be deemed a waiver of such right or provision.
|
|
45
|
-
|
|
46
|
-
Onix Technologies
|
|
47
|
-
Chisinau, MD-2072
|
|
48
|
-
Moldova
|
|
1
|
+
Proprietary License Agreement
|
|
2
|
+
|
|
3
|
+
1. Grant of License
|
|
4
|
+
Onix Technologies ("Licensor") hereby grants you ("Licensee") a non-exclusive, non-transferable, limited license to use the Rendley SDK ("Software") solely for the purpose of developing and integrating applications in accordance with the terms of this Agreement.
|
|
5
|
+
|
|
6
|
+
2. Restrictions
|
|
7
|
+
|
|
8
|
+
Licensee shall not:
|
|
9
|
+
|
|
10
|
+
1. Modify, adapt, translate, or create derivative works of the Software without prior written consent from Licensor.
|
|
11
|
+
2. Reverse engineer, decompile, disassemble, or otherwise attempt to discover the source code of the Software.
|
|
12
|
+
3. Redistribute, sublicense, rent, lease, or lend the Software to any third party.
|
|
13
|
+
4. Use the Software for any purpose that is illegal or prohibited by law.
|
|
14
|
+
|
|
15
|
+
5. Intellectual Property Rights
|
|
16
|
+
|
|
17
|
+
The Software is protected by copyright laws and international copyright treaties, as well as other intellectual property laws and treaties. All title, ownership rights, and intellectual property rights in and to the Software and all copies thereof are owned by Licensor.
|
|
18
|
+
|
|
19
|
+
4. Fees and Payment
|
|
20
|
+
Licensee agrees to pay the license fees and any other charges incurred in connection with the use of the Software as specified in the order form or purchase agreement. All payments are non-refundable.
|
|
21
|
+
|
|
22
|
+
5. Support and Updates
|
|
23
|
+
Licensor may, at its sole discretion, provide updates, enhancements, or modifications to the Software. Licensor is not obligated to provide any support services, updates, or enhancements unless a separate support agreement is entered into.
|
|
24
|
+
|
|
25
|
+
6. Termination
|
|
26
|
+
This Agreement is effective until terminated. Licensee may terminate this Agreement at any time by destroying all copies of the Software in their possession. Licensor may terminate this Agreement if Licensee breaches any of the terms and conditions. Upon termination, Licensee must destroy all copies of the Software.
|
|
27
|
+
|
|
28
|
+
7. Disclaimer of Warranties
|
|
29
|
+
THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. LICENSOR DOES NOT WARRANT THAT THE SOFTWARE WILL MEET LICENSEE'S REQUIREMENTS OR THAT THE OPERATION OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR-FREE.
|
|
30
|
+
|
|
31
|
+
8. Limitation of Liability
|
|
32
|
+
IN NO EVENT SHALL LICENSOR BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES, OR DAMAGES FOR LOSS OF PROFITS, REVENUE, DATA, OR USE, INCURRED BY LICENSEE OR ANY THIRD PARTY, WHETHER IN AN ACTION IN CONTRACT OR TORT, ARISING FROM LICENSEE'S ACCESS TO, OR USE OF, THE SOFTWARE.
|
|
33
|
+
|
|
34
|
+
9. Governing Law
|
|
35
|
+
This Agreement shall be governed by and construed in accordance with the laws of Moldova, without regard to its conflict of laws principles.
|
|
36
|
+
|
|
37
|
+
10. Entire Agreement
|
|
38
|
+
This Agreement constitutes the entire agreement between the parties with respect to the use of the Software and supersedes all prior or contemporaneous understandings regarding such subject matter. Any modifications to this Agreement must be in writing and signed by both parties.
|
|
39
|
+
|
|
40
|
+
11. Severability
|
|
41
|
+
If any provision of this Agreement is held to be invalid or unenforceable, the remaining provisions will continue in full force and effect.
|
|
42
|
+
|
|
43
|
+
12. No Waiver
|
|
44
|
+
The failure of either party to enforce any right or provision of this Agreement will not be deemed a waiver of such right or provision.
|
|
45
|
+
|
|
46
|
+
Onix Technologies
|
|
47
|
+
Chisinau, MD-2072
|
|
48
|
+
Moldova
|
package/README.md
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
# Rendley SDK
|
|
2
|
-
|
|
3
|
-
Rendley SDK takes the complexity out of video editing by providing a comprehensive set of APIs that handle composition, effects, filters, playback, rendering, splitting, trimming, and more.
|
|
4
|
-
|
|
5
|
-
To achieve maximum performance, we leverage WebGL for rendering and WebCodecs API for hardware-accelerated encoding and decoding. For browsers that don't support [WebCodecs API](https://caniuse.com/?search=webcodecs), we seamlessly fallback to a browser-based version of FFmpeg.
|
|
6
|
-
|
|
7
|
-
## Installation
|
|
8
|
-
|
|
9
|
-
### Prerequisites
|
|
10
|
-
|
|
11
|
-
To use Rendley SDK, ensure that your website includes the following headers to enable [SharedArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) functionality:
|
|
12
|
-
|
|
13
|
-
```
|
|
14
|
-
Cross-Origin-Embedder-Policy: credentialless
|
|
15
|
-
Cross-Origin-Opener-Policy: same-origin
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
### Using the NPM Registry
|
|
19
|
-
|
|
20
|
-
The installation process is straightforward. Simply run one of the followin
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
npm install @rendley/sdk
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
or
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
yarn add @rendley/sdk
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
The package includes type definitions, so you don't need to worry about setting those up separately.
|
|
33
|
-
|
|
34
|
-
## Getting Started
|
|
35
|
-
|
|
36
|
-
Check out the [documentation](https://docs.rendley.com) to learn more about how to get started creating compositions and building your own video editing software.
|
|
37
|
-
|
|
38
|
-
## Templates
|
|
39
|
-
|
|
40
|
-
To further simplify the process, we have [pre-built interfaces](https://docs.rendley.com/video-editor) that allow you to embed our video editing capabilities onto your website with just a few lines of code.
|
|
1
|
+
# Rendley SDK
|
|
2
|
+
|
|
3
|
+
Rendley SDK takes the complexity out of video editing by providing a comprehensive set of APIs that handle composition, effects, filters, playback, rendering, splitting, trimming, and more.
|
|
4
|
+
|
|
5
|
+
To achieve maximum performance, we leverage WebGL for rendering and WebCodecs API for hardware-accelerated encoding and decoding. For browsers that don't support [WebCodecs API](https://caniuse.com/?search=webcodecs), we seamlessly fallback to a browser-based version of FFmpeg.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
### Prerequisites
|
|
10
|
+
|
|
11
|
+
To use Rendley SDK, ensure that your website includes the following headers to enable [SharedArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) functionality:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
Cross-Origin-Embedder-Policy: credentialless
|
|
15
|
+
Cross-Origin-Opener-Policy: same-origin
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### Using the NPM Registry
|
|
19
|
+
|
|
20
|
+
The installation process is straightforward. Simply run one of the followin
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npm install @rendley/sdk
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
or
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
yarn add @rendley/sdk
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
The package includes type definitions, so you don't need to worry about setting those up separately.
|
|
33
|
+
|
|
34
|
+
## Getting Started
|
|
35
|
+
|
|
36
|
+
Check out the [documentation](https://docs.rendley.com) to learn more about how to get started creating compositions and building your own video editing software.
|
|
37
|
+
|
|
38
|
+
## Templates
|
|
39
|
+
|
|
40
|
+
To further simplify the process, we have [pre-built interfaces](https://docs.rendley.com/video-editor) that allow you to embed our video editing capabilities onto your website with just a few lines of code.
|
package/dist/Engine.d.ts
CHANGED
|
@@ -49,18 +49,18 @@ export declare class Engine {
|
|
|
49
49
|
private display;
|
|
50
50
|
private timeline;
|
|
51
51
|
private library;
|
|
52
|
-
private fontRegistry;
|
|
52
|
+
private readonly fontRegistry;
|
|
53
53
|
private subtitlesManager;
|
|
54
|
-
private undoManager;
|
|
55
|
-
private storageController;
|
|
54
|
+
private readonly undoManager;
|
|
55
|
+
private readonly storageController;
|
|
56
56
|
private settings;
|
|
57
57
|
readonly events: EventEmitter;
|
|
58
58
|
private initialized;
|
|
59
|
-
private rendering;
|
|
60
59
|
private license?;
|
|
61
60
|
private projectId;
|
|
62
61
|
private isDestroying;
|
|
63
62
|
private createdAt;
|
|
63
|
+
private readonly renderer;
|
|
64
64
|
private constructor();
|
|
65
65
|
static getInstance(): Engine;
|
|
66
66
|
hasInstance(): boolean;
|
|
@@ -79,7 +79,6 @@ export declare class Engine {
|
|
|
79
79
|
getStorageController(): StorageController;
|
|
80
80
|
isInitialized(): boolean;
|
|
81
81
|
isRendering(): boolean;
|
|
82
|
-
private generateMix;
|
|
83
82
|
export(payload?: ExportOptions): Promise<ExportResult | null>;
|
|
84
83
|
play(): Promise<void>;
|
|
85
84
|
pause(): Promise<void>;
|
|
@@ -87,7 +86,7 @@ export declare class Engine {
|
|
|
87
86
|
seek(value: number): Promise<void>;
|
|
88
87
|
getRenderer(): import("./modules/display/renderer/PixiRenderer").PixiRenderer;
|
|
89
88
|
getRendererStage(): PIXI.Container<PIXI.DisplayObject> | null;
|
|
90
|
-
getClipById(clipId: string): import("
|
|
89
|
+
getClipById(clipId: string): import(".").Clip<PIXI.Sprite, import(".").ClipStyle<PIXI.Sprite>> | undefined;
|
|
91
90
|
getClipsIdsForPoint(x: number, y: number): null;
|
|
92
91
|
setSubtitles(subtitlesId: string, offset: number): void;
|
|
93
92
|
shouldSplitAudio(): boolean;
|
|
@@ -151,37 +150,37 @@ export declare class Engine {
|
|
|
151
150
|
projectId?: string | undefined;
|
|
152
151
|
subtitlesManager?: {
|
|
153
152
|
scale: number;
|
|
154
|
-
textMode: "
|
|
153
|
+
textMode: "partial" | "full";
|
|
155
154
|
highlightAnimation: import("./modules/subtitles").HighlightAnimationEnum;
|
|
156
155
|
highlightAnimationSpeed: number;
|
|
157
156
|
mainTextStyle: {
|
|
158
157
|
color: string;
|
|
158
|
+
strokeColor: string;
|
|
159
159
|
fontSize: number;
|
|
160
160
|
fontWeight: "bold" | "normal" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
161
161
|
fontFamily: string;
|
|
162
162
|
fontStyle: "normal" | "italic" | "oblique";
|
|
163
163
|
backgroundColor: string;
|
|
164
|
-
backgroundPadding: number;
|
|
165
|
-
backgroundCornerRadius: number;
|
|
166
164
|
strokeThickness: number;
|
|
167
|
-
strokeColor: string;
|
|
168
|
-
padding: number;
|
|
169
165
|
wordWrapWidth: number;
|
|
166
|
+
padding: number;
|
|
170
167
|
wordWrap: boolean;
|
|
168
|
+
backgroundPadding: number;
|
|
169
|
+
backgroundCornerRadius: number;
|
|
171
170
|
leading: number;
|
|
172
171
|
};
|
|
173
172
|
highlightTextStyle: {
|
|
174
173
|
color: string;
|
|
174
|
+
strokeColor: string;
|
|
175
175
|
fontSize: number;
|
|
176
176
|
fontWeight: "bold" | "normal" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
177
177
|
fontFamily: string;
|
|
178
178
|
fontStyle: "normal" | "italic" | "oblique";
|
|
179
179
|
backgroundColor: string;
|
|
180
|
-
backgroundPadding: number;
|
|
181
|
-
backgroundCornerRadius: number;
|
|
182
180
|
strokeThickness: number;
|
|
183
|
-
strokeColor: string;
|
|
184
181
|
padding: number;
|
|
182
|
+
backgroundPadding: number;
|
|
183
|
+
backgroundCornerRadius: number;
|
|
185
184
|
};
|
|
186
185
|
position?: [number, number] | undefined;
|
|
187
186
|
} | undefined;
|
|
@@ -189,7 +188,9 @@ export declare class Engine {
|
|
|
189
188
|
decoderPreferredAcceleration: import("./modules/settings").PreferredAcceleration;
|
|
190
189
|
encoderPreferredAcceleration: import("./modules/settings").PreferredAcceleration;
|
|
191
190
|
m3u8MaxResolution: [number, number];
|
|
192
|
-
|
|
191
|
+
renderShowPreview: boolean;
|
|
192
|
+
renderMaxQueueSize: number;
|
|
193
|
+
renderThrottleFactor: number;
|
|
193
194
|
encoderCodec: VideoCodec;
|
|
194
195
|
encoderUseWebCodecs: boolean;
|
|
195
196
|
encoderUseAlpha: boolean;
|