diff --git a/guide.md b/guide.md index 764e359fb4..5d2bab8e0e 100644 --- a/guide.md +++ b/guide.md @@ -6,7 +6,7 @@ ## Installation -### Direct ` ``` +If the above versions are not supported, you can try previous versions, such as: + +```html + + +``` + #### Only include the recorder code rrweb's code includes both the record and the replay parts. Most of the time you only need to include the record part into your targeted web Apps. @@ -57,7 +67,7 @@ Besides the `rrweb` and `@rrweb/record` packages, rrweb also provides other pack - [@rrweb/rrweb-plugin-canvas-webrtc-record](packages/plugins/rrweb-plugin-canvas-webrtc-record): A plugin for stream `` via WebRTC. - [@rrweb/rrweb-plugin-canvas-webrtc-replay](packages/plugins/rrweb-plugin-canvas-webrtc-replay): A plugin for playing streamed `` via WebRTC. -### NPM +### Option 2: NPM ```shell npm install --save rrweb diff --git a/guide.zh_CN.md b/guide.zh_CN.md index 4078cb2b6a..3c2a242db2 100644 --- a/guide.zh_CN.md +++ b/guide.zh_CN.md @@ -4,7 +4,7 @@ ## 安装 -### 直接通过 ` ``` +若以上版本不支持,可以尝试之前的版本,例如: + +```html + + +``` + #### 仅引入录制部分 rrweb 代码分为录制和回放两部分,大多数时候用户在被录制的应用中只需要引入录制部分代码。同样可以通过使用 @rrweb/record 包和 CDN 服务来实现: @@ -54,7 +64,7 @@ rrweb 代码分为录制和回放两部分,大多数时候用户在被录制 - [@rrweb/rrweb-plugin-canvas-webrtc-record](packages/plugins/rrweb-plugin-canvas-webrtc-record):一个用于通过 WebRTC 流式传输 `` 的插件。 - [@rrweb/rrweb-plugin-canvas-webrtc-replay](packages/plugins/rrweb-plugin-canvas-webrtc-replay):一个用于通过 WebRTC 播放流式 `` 的插件。 -### 通过 npm 引入 +### 选项二:通过 npm 引入 ```shell npm install --save rrweb