larksr_websdk 3.2.36 → 3.2.39

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.
@@ -87,7 +87,10 @@ interface ILarkSRConfig {
87
87
  perferDecoder?: 'auto' | 'vp8' | 'vp9' | 'h264' | 'av1x';
88
88
  /**
89
89
  * 可选项,视频在容器中的缩放模式
90
- *
90
+ * 'contain' | 'fill_clip' | 'fill_stretch'
91
+ * contain: 以应用原始尺寸的缩放
92
+ * fill_clip: 裁剪模式,完全填充屏幕但保留宽高比
93
+ * fill_stretch: 拉伸模式,完全填充屏幕但不保留宽高比
91
94
  */
92
95
  scaleMode?: ScaleMode;
93
96
  /**
@@ -299,4 +299,11 @@ larksr.on('aivoicedmresult', (e) => {
299
299
  * 采集一帧图像
300
300
  */
301
301
  captrueFrame(data: any)
302
+ /**
303
+ * 设置是否强制横屏显示内容.
304
+ * handelRootElementSize 必须设置为 true 才有作用。
305
+ * 要注意强制横屏模式下网页的坐标系xy和视觉上相反,如果通过外部输入 input 事件。要注意调整
306
+ * @param force 是否强制横屏
307
+ */
308
+ setMobileForceLandScape(force: boolean): void;
302
309
  ```
@@ -52,3 +52,15 @@ larksr.on('aivoicedmresult', (e) => {
52
52
  // 智能语音对话结果
53
53
  });
54
54
  ```
55
+
56
+ ## V3.2.37
57
+
58
+ ```typescript
59
+ /**
60
+ * 设置是否强制横屏显示内容.
61
+ * handelRootElementSize 必须设置为 true 才有作用。
62
+ * 要注意强制横屏模式下网页的坐标系xy和视觉上相反,如果通过外部输入 input 事件。要注意调整
63
+ * @param force 是否强制横屏
64
+ */
65
+ setMobileForceLandScape(force: boolean): void;
66
+ ```