@cesdk/engine 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.
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 */
@@ -3807,6 +3815,8 @@ declare interface ExportVideoOptions {
3807
3815
  h264Profile: number;
3808
3816
  h264Level: number;
3809
3817
  framerate: number;
3818
+ videoBitrate: number;
3819
+ audioBitrate: number;
3810
3820
  useTargetSize: boolean;
3811
3821
  targetWidth: number;
3812
3822
  targetHeight: number;
@@ -4715,6 +4725,16 @@ export declare type VideoExportOptions = {
4715
4725
  * @defaultValue 52
4716
4726
  */
4717
4727
  h264Level?: number;
4728
+ /**
4729
+ * The video bitrate in bits per second. Maximum bitrate is determined by h264Profile and h264Level.
4730
+ * If the value is 0, the bitrate is automatically determined by the engine.
4731
+ */
4732
+ videoBitrate?: number;
4733
+ /**
4734
+ * The audio bitrate in bits per second.
4735
+ * If the value is 0, the bitrate is automatically determined by the engine (128kbps for stereo AAC stream).
4736
+ */
4737
+ audioBitrate?: number;
4718
4738
  /**
4719
4739
  * The time offset in seconds of the scene's timeline from which the video will start.
4720
4740
  *