1.0.11 • Published 1 year ago

record-sdk v1.0.11

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

车车录屏

record-sdk 是车车在车险产品上的录屏 sdk。数据将保存在车车的录屏管理平台。

开始使用

安装

npm install record-sdk --save

初始化

import record from 'record-sdk'; record.init({ baseUrl: xxxxx }); // xxxx 是服务器地址

录屏

record.startRecord({ channelId: 'chebaoyi', orderId: xxxx, pageCode: xxxx});

record.stopRecord({ channelId: 'chebaoyi', orderId: xxxx, pageCode: xxxx,saveKey?:xxxx},options?:{onBefore:(params)=>{},onFinish:(result=>{})});

入参说明:

  • channelId 渠道编码(必填)
  • orderId 订单 ID(关于这个录屏的单的唯一标识)(必填)
  • pageCode 录屏当前页面的推一标识(例如页面链接)(必填)

  • saveKey?: string // 如果 orderId 不确定,用了其他唯一标识,有了确定的 orderId 后,再提交

  • onBefore stopRecord 方法回调函数,上传前调用

  • onFinish stopRecord 方法回调函数,上传完后调用,返回{code:200,msg:'',data:${记录 id}}表示上传成功

startRecord 与 stopRecord 应配对使用。 进入待录屏页面时,必须先 startRecrod 启动录屏, 退出当前页面时,必须调用 stopRecord,才能启动新页面的录制(startRecrod)。 调用 stopRecord 时,接口会自动上传当前录制的记录。

1.0.11

1 year ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago