1.0.10 • Published 2 years ago

record-sdk v1.0.10

Weekly downloads
-
License
-
Repository
-
Last release
2 years 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},options?:{onBefore:(params)=>{},onFinish:(result=>{})});

入参说明:

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

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

  • onFinish stopRecord 方法回调函数,上传完后调用,result.code===200 表示上传成功

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

1.0.10

2 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago