larksr_websdk 3.3.102 → 3.3.104

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.
Files changed (42) hide show
  1. package/dist/doc/en/config.md +99 -99
  2. package/dist/doc/en/dev.md +21 -21
  3. package/dist/doc/en/event_codes.md +117 -117
  4. package/dist/doc/en/events.md +72 -72
  5. package/dist/doc/en/functions.md +239 -239
  6. package/dist/doc/en/index.md +1 -1
  7. package/dist/doc/en/member_variables.md +116 -120
  8. package/dist/doc/en/multi_media_3_2_401.md +20 -20
  9. package/dist/doc/en/sdkid_encryption.md +14 -14
  10. package/dist/doc/en/update.md +462 -462
  11. package/dist/doc/zh_CN/config.md +1 -1
  12. package/dist/doc/zh_CN/event_codes.md +1 -1
  13. package/dist/doc/zh_CN/functions.md +2 -2
  14. package/dist/doc/zh_CN/index.md +1 -1
  15. package/dist/doc/zh_CN/multi_media_3_2_401.md +1 -1
  16. package/dist/doc/zh_CN/update.md +579 -579
  17. package/dist/larksr-web-sdk.min.js +1 -1
  18. package/dist/types/api.d.ts +2 -0
  19. package/dist/types/appli_params.d.ts +14 -0
  20. package/dist/types/lark/application.d.ts +2 -1
  21. package/dist/types/lark/message.d.ts +1 -0
  22. package/dist/types/larksr.d.ts +83 -4
  23. package/dist/types/localization/ui.d.ts +2 -0
  24. package/dist/types/operation/keyboard_handler.d.ts +25 -0
  25. package/dist/types/utils/lock_pointer.d.ts +2 -1
  26. package/package.json +72 -72
  27. package/types/api.d.ts +2 -0
  28. package/types/appli_params.d.ts +14 -0
  29. package/types/lark/application.d.ts +2 -1
  30. package/types/lark/message.d.ts +1 -0
  31. package/types/larksr.d.ts +83 -4
  32. package/types/localization/ui.d.ts +2 -0
  33. package/types/operation/keyboard_handler.d.ts +25 -0
  34. package/types/utils/lock_pointer.d.ts +2 -1
  35. package/dist/types/lark/custom.d.ts +0 -7
  36. package/dist/types/lark/webcodecs.generated.d.ts +0 -417
  37. package/dist/types/protobuf/cloudlark.d.ts +0 -9674
  38. package/dist/types/utils/ios-inner-height.d.ts +0 -4
  39. package/types/lark/custom.d.ts +0 -7
  40. package/types/lark/webcodecs.generated.d.ts +0 -417
  41. package/types/protobuf/cloudlark.d.ts +0 -9674
  42. package/types/utils/ios-inner-height.d.ts +0 -4
@@ -1,140 +1,140 @@
1
- # LarkSR 对象参数
1
+ # LarkSR Object Parameters
2
2
 
3
- 创建 LarkSR 对象参数如下
3
+ The parameters for creating a LarkSR object are as follows:
4
4
 
5
5
  ```typescript
6
6
  /**
7
- * 构造 LarkSR 参数
7
+ * LarkSR Configuration Interface
8
8
  */
9
9
  interface ILarkSRConfig {
10
10
  /**
11
- * 必选项 根元素。组件会挂载到跟元素下面
12
- * 注意*不要*设置为 document.documentElement
13
- * 默认模式下会通过旋转根元素实现强制横屏模式。
11
+ * Required. Root element. The component will be mounted under the root element.
12
+ * Note: *Do not* set it to document.documentElement.
13
+ * In default mode, the root element will be rotated to enforce landscape mode.
14
14
  * @see handleRootElementSize
15
15
  * @see scaleMode
16
16
  */
17
17
  rootElement: HTMLElement;
18
18
  /**
19
- * 可选项 服务器地址. LarkServer 前台访问的地址
20
- * 如: http://192.168.0.55:8181/
21
- * 当使用托管服务时服务器地址自动分配,可留空。
22
- * 使用托管服务时@see CreateLarkSRClientFromePXYHost @see larksr.connectWithPxyHost
19
+ * Optional. Server address. The address for accessing the LarkServer frontend.
20
+ * Example: http://192.168.0.55:8181/
21
+ * When using managed services, the server address is automatically assigned and can be left empty.
22
+ * When using managed services, @see CreateLarkSRClientFromePXYHost @see larksr.connectWithPxyHost
23
23
  */
24
24
  serverAddress?: string;
25
25
  /**
26
- * 可选项。 sdk 授权码。如果不在此处填,则必须在后续的实例里调用 initSDKAuthCode 初始化。
26
+ * Optional. SDK authorization code. If not provided here, it must be initialized in the instance later by calling initSDKAuthCode.
27
27
  */
28
28
  authCode?: string;
29
29
  /**
30
- * 可选项,授权是否成功
31
- * @deprecated 目前不会回调该参数。如果SDK验证失败将在 connect 返回失败
30
+ * Optional. Whether the authorization is successful.
31
+ * @deprecated This parameter is currently not called back. If SDK verification fails, it will return a failure in connect.
32
32
  */
33
33
  authCodeCallback?: (isSuccess: boolean, e: any) => void;
34
34
  /**
35
- * 可选项,载入时的背景图片 url
35
+ * Optional. Background image URL during loading.
36
36
  */
37
37
  loadingBgUrl?: string;
38
38
  /**
39
- * 可选项,是否同步传入根的组件的大小样式。
40
- * 默认开启,将跟组件大小设置为浏览器视口大小
41
- * 如果关闭,内部组件将按照传入的根元素大小去显示
42
- * 注意,当关闭时不会自动填充根元素,如果根元素高度为 0 将显示不出来。
43
- * 注意,当关闭时 mobileForceLandscape 将失去作用。
39
+ * Optional. Whether to synchronize the size style of the root component.
40
+ * Enabled by default, setting the root component size to the browser viewport size.
41
+ * If disabled, the internal components will be displayed according to the size of the passed root element.
42
+ * Note: When disabled, the root element will not be automatically filled. If the root element height is 0, it will not be displayed.
43
+ * Note: When disabled, mobileForceLandscape will lose its effect.
44
44
  */
45
45
  handleRootElementSize?: boolean;
46
46
  /**
47
- * handleRootElementSize
47
+ * Same as handleRootElementSize.
48
48
  */
49
49
  handelRootElementSize?: boolean;
50
50
  /**
51
- * 是否只设置根的组件的旋转。只当 handleRootElementSize true 时有效。设置根组件的旋转用于 mobileForceLandscape 模式。
52
- * 默认为false,此时 SDK 会设置根组件的宽高,margin 0,padding 0
53
- * true并且handleRootElementSize也为true时,只设置根组件的旋转属性,用于强制横屏模式以及强制横屏竖屏的切换。
54
- * 要注意onlyHandleRootElementTransform开启成功时,要保证根节点的元素大小并且当根节点变化时应调用 resize 方法通知更新根节点的大小。
51
+ * Whether to only set the rotation of the root component. Only effective when handleRootElementSize is true. Sets the rotation of the root component for mobileForceLandscape mode.
52
+ * Default is false. In this case, the SDK will set the width, height, margin 0, and padding 0 of the root component.
53
+ * When true and handleRootElementSize is also true, only the rotation attribute of the root component is set, used for forced landscape mode and switching between forced landscape and portrait modes.
54
+ * Note: When onlyHandleRootElementTransform is successfully enabled, ensure the size of the root element and call the resize method to notify the update of the root element size when the root element changes.
55
55
  */
56
56
  onlyHandleRootElementTransform?: boolean;
57
57
  /**
58
- * 是否在sdk内部监听鼠标键盘等输入事件
59
- * 如果关闭需要手动发送输入事件
60
- * 注意关闭时全屏模式和锁定模式将失效,需要在sdk外部触发
58
+ * Whether to listen to mouse, keyboard, and other input events within the SDK.
59
+ * If disabled, input events need to be sent manually.
60
+ * Note: When disabled, full-screen mode and lock mode will be invalid and need to be triggered externally.
61
61
  * @see fullScreenMode
62
62
  */
63
63
  handlInput?: boolean;
64
64
  /**
65
- * 当视频播自动放失败时是否尝试静音播放,静音播放时将抛出事件
66
- * 静音播放当用户操作屏幕时将尝试播放声音
65
+ * Whether to attempt muted playback when video autoplay fails. An event will be thrown when muted playback occurs.
66
+ * When the user interacts with the screen during muted playback, it will attempt to play sound.
67
67
  */
68
68
  mutePlayWhenFailed?: boolean;
69
69
  /**
70
- * 可选项,是否是 vr 监控类型。
70
+ * Optional. Whether it is a VR monitoring type.
71
71
  */
72
72
  isMonitor?: boolean;
73
73
  /**
74
- * 可选项,码率
74
+ * Optional. Bitrate.
75
75
  */
76
76
  codeRate?: number;
77
77
  /**
78
- * 可选项,帧率
78
+ * Optional. Frame rate.
79
79
  */
80
80
  frameRate?: number;
81
81
  /**
82
- * 可选项,音频帧率
82
+ * Optional. Audio frame rate.
83
83
  */
84
84
  audioCodeRate?: number;
85
85
  /**
86
- * 可选项,日志级别。默认为 warn
86
+ * Optional. Log level. Default is warn.
87
87
  */
88
88
  logLevel?: 'info' | 'warn' | 'error';
89
89
  /**
90
- * 可选项,载入超时时间. 默认为 60s。超过该事件停止载入
90
+ * Optional. Loading timeout. Default is 60s. Loading stops after this time.
91
91
  */
92
92
  loadingTimeout?: number;
93
93
  /**
94
- * 可选项,是否自动同步剪贴板数据
94
+ * Optional. Whether to automatically synchronize clipboard data.
95
95
  */
96
96
  syncLocalToCloudClipboard?: boolean;
97
97
  /**
98
- * 可选项,优选选择的视频编码格式
98
+ * Optional. Preferred video codec format.
99
99
  */
100
100
  preferDecoder?: 'auto' | 'vp8' | 'vp9' | 'h264' | 'h265' | 'hevc' | 'av1x';
101
101
  /**
102
- * 可选项,视频在容器中的缩放模式
102
+ * Optional. Video scaling mode within the container.
103
103
  * ScaleMode: 'contain' | 'fill_clip' | 'fill_stretch'
104
- * contain: 以应用原始尺寸的缩放
105
- * fill_clip: 裁剪模式,完全填充屏幕但保留宽高比
106
- * fill_stretch: 拉伸模式,完全填充屏幕但不保留宽高比
107
- * 对应后台应用管理->应用编辑->通用高级设置->窗口初始显示方式,该配置优先级高于后台配置
104
+ * contain: Scales with the original size of the application.
105
+ * fill_clip: Crop mode, fully fills the screen while maintaining aspect ratio.
106
+ * fill_stretch: Stretch mode, fully fills the screen without maintaining aspect ratio.
107
+ * Corresponds to the initial display mode in the backend application management -> application editing -> general advanced settings. This configuration has a higher priority than the backend configuration.
108
108
  */
109
109
  scaleMode?: ScaleMode;
110
110
  /**
111
- * 全屏模式
112
- * 0 -》 用户手动触发
113
- * 1 -》 首次点击进入触发
114
- * 2 -》 每次点击触发
115
- * 对应后台应用管理->应用编辑->通用高级设置->全屏模式,该配置优先级高于后台配置
111
+ * Full-screen mode.
112
+ * 0 -》 Manually triggered by the user.
113
+ * 1 -》 Triggered on the first click.
114
+ * 2 -》 Triggered on every click.
115
+ * Corresponds to the full-screen mode in the backend application management -> application editing -> general advanced settings. This configuration has a higher priority than the backend configuration.
116
116
  */
117
117
  fullScreenMode?: number;
118
118
  /**
119
- * 可选项,手机端的全屏模式,值同 fullScreenMode
120
- * 对应后台应用管理->应用编辑->移动端高级设置->全屏模式,该配置优先级高于后台配置
119
+ * Optional. Full-screen mode on mobile devices, same values as fullScreenMode.
120
+ * Corresponds to the full-screen mode in the backend application management -> application editing -> mobile advanced settings. This configuration has a higher priority than the backend configuration.
121
121
  */
122
122
  mobileFullScreenMode?: number;
123
123
  /**
124
- * 可选项,手机端是否强制横屏
125
- * 对应后台应用管理->应用编辑->移动端高级设置->手机端时是否强制横屏,该配置优先级高于后台配置
124
+ * Optional. Whether to force landscape mode on mobile devices.
125
+ * Corresponds to whether to force landscape mode on mobile devices in the backend application management -> application editing -> mobile advanced settings. This configuration has a higher priority than the backend configuration.
126
126
  */
127
127
  mobileForceLandscape?: boolean;
128
128
  /**
129
- * 可选项
130
- * 初始化鼠标模式, true 锁定,false 非锁定
131
- * 对应后台应用管理->应用编辑->通用高级设置->初始化鼠标模式,该配置优先级高于后台配置
129
+ * Optional.
130
+ * Initial mouse mode, 0 for automatic detection, 1 for locked, 2 for unlocked.
131
+ * Corresponds to the initial mouse mode in the backend application management -> application editing -> general advanced settings. This configuration has a higher priority than the backend configuration.
132
132
  */
133
133
  initCursorMode?: boolean;
134
134
  /**
135
- * 可选项
136
- * 渲染服务器外网端口映射
137
- * 格式为 key=[渲染服务器IP:PORT] value=[外网IP:PORT]
135
+ * Optional.
136
+ * External port mapping of the rendering server.
137
+ * Format: key=[Rendering Server IP:PORT] value=[External IP:PORT]
138
138
  * {
139
139
  * "RENDER-A-IP:RENDER-A-PORT1": "PUBLIC-A-IP:PORT1",
140
140
  * "RENDER-B-IP:RENDER-B-PORT1": "PUBLIC-A-IP:PORT2",
@@ -146,83 +146,83 @@ interface ILarkSRConfig {
146
146
  */
147
147
  publicPortMapping?: PublicPortMapping;
148
148
  /**
149
- * 可选项
150
- * 是否提示输入文字 APP_REQUEST_INPUT
151
- * 当服务端检测到输入法事件后会抛出事件,可在 web 层添加输入框,配合 inputText 发送文字到云端
152
- * 默认打开,当手动关闭时将不会抛出 APP_REQUEST_INPUT 事件
149
+ * Optional.
150
+ * Whether to prompt for text input APP_REQUEST_INPUT.
151
+ * When the server detects an input method event, an event will be thrown. You can add an input box on the web layer and use inputText to send text to the cloud.
152
+ * Enabled by default. When manually disabled, the APP_REQUEST_INPUT event will not be thrown.
153
153
  */
154
154
  textInputEventPrompt?: boolean;
155
155
  /**
156
- * 可选项
157
- * 当启用音频输入功能,是否自动连入音频设备。
158
- * 默认关闭。
159
- * 需要注意默认打开的是系统中默认的音频设备。
156
+ * Optional.
157
+ * Whether to automatically connect to audio devices when the audio input feature is enabled.
158
+ * Disabled by default.
159
+ * Note that the default audio device of the system is enabled by default.
160
160
  */
161
161
  audioInputAutoStart?: boolean;
162
162
  /**
163
- * 可选项
164
- * 当启用视频输入功能,是否自动连入视频设备。
165
- * 默认关闭。
166
- * 需要注意默认打开的是系统中默认的视频设备。
163
+ * Optional.
164
+ * Whether to automatically connect to video devices when the video input feature is enabled.
165
+ * Disabled by default.
166
+ * Note that the default video device of the system is enabled by default.
167
167
  */
168
168
  videoInputAutoStart?: boolean;
169
169
  /**
170
- * 可选项
170
+ * Optional.
171
171
  * mouseZoomDirection
172
- * 用于移动端捏合缩放操作与应用鼠标缩放的对应关系
173
- * 1:鼠标滚轮向上为放大,
174
- * 0:鼠标滚轮向下为放大(default)
172
+ * Used for the correspondence between pinch zoom operations on mobile devices and application mouse zoom.
173
+ * 1: Mouse wheel up to zoom in,
174
+ * 0: Mouse wheel down to zoom in (default).
175
175
  */
176
176
  mouseZoomDirection?: number;
177
177
  /**
178
- * 可选项
179
- * 触摸指令,移动端的触摸指令对应为云端的触屏还是鼠标
178
+ * Optional.
179
+ * Touch operation mode, whether the touch operation on mobile devices corresponds to the touch screen or mouse on the cloud.
180
180
  * 'touchScreen' | 'mouse'
181
- * 触摸指令模式,对应后台应用管理->应用编辑->移动端高级设置->触摸指令模式 优先级高于后台配置
181
+ * Touch operation mode, corresponds to the touch operation mode in the backend application management -> application editing -> mobile advanced settings. This configuration has a higher priority than the backend configuration.
182
182
  */
183
183
  touchOperateMode?: 'touchScreen' | 'mouse';
184
184
  /**
185
- * 可选项
186
- * 优先使用渲染服务器点对点连接外网ip
187
- * 如果配置将覆盖后台设置的 preferPublicIp 参数
185
+ * Optional.
186
+ * Prefer to use the external IP for peer-to-peer connection of the rendering server.
187
+ * If configured, it will override the preferPublicIp parameter set in the backend.
188
188
  */
189
189
  preferPublicIp?: string;
190
190
  /**
191
- * 可选项
192
- * 是否自动播放。默认开启。
193
- * 如果关闭,连接成功之后会有提示UI,用户手动触发。
194
- * 开启自动播放时也不能保证所有浏览器自动播放成功,当播放失败或者浏览器不支持自动播放时,
195
- * 也会显示播放按钮,用户点击播放按钮手动播放。
191
+ * Optional.
192
+ * Whether to autoplay. Enabled by default.
193
+ * If disabled, there will be a prompt UI after a successful connection, and the user needs to trigger it manually.
194
+ * Enabling autoplay does not guarantee that all browsers will autoplay successfully. When playback fails or the browser does not support autoplay,
195
+ * a play button will be displayed, and the user needs to click the play button to play manually.
196
196
  */
197
197
  autoPlay?: boolean;
198
198
  /**
199
- * 可选项
200
- * 在播放失败或者手动播放模式下是否显示播放的按钮。
201
- * 默认开启。要注意,如果关闭情况下要添加好提示或UI,引导用户点击播放。
202
- * UI中要让用户触发 larksr.videoComponent.playVideo();
199
+ * Optional.
200
+ * Whether to display the play button in case of playback failure or manual playback mode.
201
+ * Enabled by default. Note that if disabled, you need to add prompts or UI to guide the user to click play.
202
+ * In the UI, the user needs to trigger larksr.videoComponent.playVideo();
203
203
  */
204
204
  showPlayButton?: boolean;
205
205
  /**
206
- * 可选项
207
- * 语言设置,目前只支持种英文两种,默认中文
208
- * zh-CN 中文 en 英文
206
+ * Optional.
207
+ * Language settings, currently only supports Chinese and English, default is Chinese.
208
+ * zh-CN for Chinese, en for English.
209
209
  */
210
210
  language?: string;
211
211
  /**
212
- * 点对点连接成功,但未接收到视频流或未播放成功超时时间。自动播放模式下超时会弹出提示按钮。
213
- * 默认 20S
212
+ * Timeout for receiving video streams or successful playback after a successful peer-to-peer connection. In autoplay mode, a prompt button will pop up after the timeout.
213
+ * Default is 20s.
214
214
  */
215
215
  playTimeout?: number;
216
216
  /**
217
- * 是否使用新版摄像头/麦克风协议
218
- * 单独上传流程要求渲染服务器版本大于3290
217
+ * Whether to use the new camera/microphone protocol.
218
+ * Separate upload process requires rendering server version greater than 3290.
219
219
  */
220
220
  useSeparateMediaSharePeer?: boolean;
221
221
  /**
222
- * 是否启用 canvas 渲染. 默认关闭
223
- * 要注意移动端开启 canvas 会消耗额外性能。
224
- * 已知问题: iOS 在关闭 canvas 模式下,忽略狂高比的拉伸模式无效。
225
- */
222
+ * Whether to enable canvas rendering. Disabled by default.
223
+ * Note that enabling canvas on mobile devices will consume additional performance.
224
+ * Known issue: On iOS, when canvas mode is disabled, the stretch mode that ignores the aspect ratio is invalid.
225
+ */
226
226
  enableCanvasRender?: boolean;
227
227
  }
228
228
  ```
@@ -1,26 +1,26 @@
1
- # Dev 分支 目前版本 3.2.4-dev.0.1
1
+ # Dev Branch Current Version 3.2.4-dev.0.1
2
2
 
3
- > Dev 分支包含未发布的服务端功能。测试联调使用。
3
+ > The Dev branch includes unreleased server-side features. Used for testing and debugging.
4
4
 
5
- ## 3.2.4-dev.0.1 新增功能
5
+ ## New Features in 3.2.4-dev.0.1
6
6
 
7
- > 以下示例代码假定 `larksr` 对象初始化并连接成功。
8
- > 测试demo https://github.com/pingxingyun/lark_sr_websdk_demos/tree/gh-pages
7
+ > The following sample code assumes that the `larksr` object has been initialized and connected successfully.
8
+ > Test demo: https://github.com/ParaverseTechnology/lark_sr_websdk_demos/tree/gh-pages
9
9
 
10
- (1). 新增多路 Web 端上传媒体功能。使用 `larksr.getMediaSharePeerConnection(index)` 获取上传媒体通道。
10
+ (1). Added multi-channel media upload feature on the Web. Use `larksr.getMediaSharePeerConnection(index)` to get the media upload channel.
11
11
 
12
- 序号 index 支持 0 - 5, 获取媒体通道之后的打开媒体操作和之前的接口相同。原有的接口等同于 `getMediaSharePeerConnection(0)`
12
+ The index supports 0 - 5. The operations for opening media after obtaining the media channel are the same as the previous interface. The original interface is equivalent to `getMediaSharePeerConnection(0)`.
13
13
 
14
- 使用方式如
14
+ Usage example:
15
15
 
16
16
  ```javascript
17
17
  larksr.getMediaSharePeerConnection(0).openVideo();
18
18
  larksr.getMediaSharePeerConnection(0).closeVideo();
19
19
  ```
20
20
 
21
- > 连接不支持多通道上传的老版本渲染服务器时,仅通道 0 起作用。
21
+ > When connected to older versions of the rendering server that do not support multi-channel uploads, only channel 0 will work.
22
22
 
23
- (2). 获取具体通道的连接状态 `getStats`
23
+ (2). Get the connection status of a specific channel using `getStats`
24
24
 
25
25
  ```javascript
26
26
  larksr.getMediaSharePeerConnection(0).getStats()
@@ -32,16 +32,16 @@ larksr.getMediaSharePeerConnection(0).getStats()
32
32
  })
33
33
  ```
34
34
 
35
- (3). 设置具体连接通道的视频编码 `preferVideoCode`
35
+ (3). Set the video codec for a specific connection channel using `preferVideoCode`
36
36
 
37
37
  ```javascript
38
38
  larksr.getMediaSharePeerConnection(0).preferVideoCode = 'h264';
39
39
  ```
40
40
 
41
- > 当当前浏览器支持所设定的视频编码时优先使用,如果不支持使用默认的编码方式
42
- > 设置完成之后再次打开视频起效,已经打开的视频通不会有变化。
41
+ > If the current browser supports the specified video codec, it will be used preferentially. If not, the default codec will be used.
42
+ > The setting will take effect the next time the video is opened. The already opened video channel will not change.
43
43
 
44
- (4). 设置具体连接通道的视频上传码率
44
+ (4). Set the video upload bitrate for a specific connection channel
45
45
 
46
46
  ```javascript
47
47
  larksr.getMediaSharePeerConnection(0).codeRate = {
@@ -51,9 +51,9 @@ larksr.getMediaSharePeerConnection(0).codeRate = {
51
51
  }
52
52
  ```
53
53
 
54
- > 设置完成之后再次打开视频起效,已经打开的视频通不会有变化。
54
+ > The setting will take effect the next time the video is opened. The already opened video channel will not change.
55
55
 
56
- (5). 媒体连接通道可以单独监听事件,如
56
+ (5). Media connection channels can listen to events individually, for example:
57
57
 
58
58
  ```javascript
59
59
  larksr.getMediaSharePeerConnection(0).on("rtc_state_change", function(e) {
@@ -61,24 +61,24 @@ larksr.getMediaSharePeerConnection(0).on("rtc_state_change", function(e) {
61
61
  });
62
62
  ```
63
63
 
64
- (6). 打开或保存下来的媒体通道对象有单独的id, 0 - 5
64
+ (6). The opened or saved media channel object has a unique id, 0 - 5
65
65
 
66
66
  ```javascript
67
67
  larksr.getMediaSharePeerConnection(0).id
68
68
  ```
69
69
 
70
- (7). 强制使用画布模式,视频通道的画布可以顺时针或者逆时针旋转画面
70
+ (7). Force the use of canvas mode, and the video channel's canvas can rotate the image clockwise or counterclockwise.
71
71
 
72
- 开启旋转
72
+ Enable rotation:
73
73
 
74
74
  ```javascript
75
75
  larksr.getMediaSharePeerConnection(0).forceRenderToCanvas = true;
76
76
  ```
77
77
 
78
- 强制顺时针旋转
78
+ Force clockwise rotation:
79
79
 
80
80
  ```javascript
81
81
  larksr.getMediaSharePeerConnection(0).canvasRender.setRotate(true);
82
82
  ```
83
83
 
84
- > 设置完成之后再次打开视频起效,已经打开的视频通不会有变化。
84
+ > The setting will take effect the next time the video is opened. The already opened video channel will not change.