@cesdk/node 1.35.0-rc.1 → 1.35.1
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.
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -2834,6 +2834,14 @@ export declare class BlockAPI {
|
|
|
2834
2834
|
* @returns Subscription A handle to the subscription. Use it to unsubscribe when done.
|
|
2835
2835
|
*/
|
|
2836
2836
|
onStateChanged: (ids: DesignBlockId[], callback: (ids: DesignBlockId[]) => void) => (() => void);
|
|
2837
|
+
/**
|
|
2838
|
+
* Begins loading the resources of the given blocks and their children.
|
|
2839
|
+
* This function is useful for preloading resources before they are needed.
|
|
2840
|
+
* @param ids - The blocks whose resources should be loaded. The given blocks don't require to have resources and
|
|
2841
|
+
* can have children blocks (e.g. a scene block or a page block).
|
|
2842
|
+
* @returns A Promise that resolves once the resources have finished loading.
|
|
2843
|
+
*/
|
|
2844
|
+
forceLoadResources(ids: DesignBlockId[]): Promise<void>;
|
|
2837
2845
|
}
|
|
2838
2846
|
|
|
2839
2847
|
/** @public */
|
|
@@ -3737,6 +3745,8 @@ declare interface ExportVideoOptions {
|
|
|
3737
3745
|
h264Profile: number;
|
|
3738
3746
|
h264Level: number;
|
|
3739
3747
|
framerate: number;
|
|
3748
|
+
videoBitrate: number;
|
|
3749
|
+
audioBitrate: number;
|
|
3740
3750
|
useTargetSize: boolean;
|
|
3741
3751
|
targetWidth: number;
|
|
3742
3752
|
targetHeight: number;
|
|
@@ -4498,6 +4508,16 @@ export declare type VideoExportOptions = {
|
|
|
4498
4508
|
* @defaultValue 52
|
|
4499
4509
|
*/
|
|
4500
4510
|
h264Level?: number;
|
|
4511
|
+
/**
|
|
4512
|
+
* The video bitrate in bits per second. Maximum bitrate is determined by h264Profile and h264Level.
|
|
4513
|
+
* If the value is 0, the bitrate is automatically determined by the engine.
|
|
4514
|
+
*/
|
|
4515
|
+
videoBitrate?: number;
|
|
4516
|
+
/**
|
|
4517
|
+
* The audio bitrate in bits per second.
|
|
4518
|
+
* If the value is 0, the bitrate is automatically determined by the engine (128kbps for stereo AAC stream).
|
|
4519
|
+
*/
|
|
4520
|
+
audioBitrate?: number;
|
|
4501
4521
|
/**
|
|
4502
4522
|
* The time offset in seconds of the scene's timeline from which the video will start.
|
|
4503
4523
|
*
|